diff --git a/Directory.Build.props b/Directory.Build.props
index c534bff7e..5c261f63f 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -17,10 +17,8 @@
2.59.0
-
-
-
-
-
-
+
+
+
+
diff --git a/src/EventStore.Client.Common/EpochExtensions.cs b/src/EventStore.Client.Common/EpochExtensions.cs
index e4d84dede..fa500cdd0 100644
--- a/src/EventStore.Client.Common/EpochExtensions.cs
+++ b/src/EventStore.Client.Common/EpochExtensions.cs
@@ -1,25 +1,21 @@
using System;
-namespace EventStore.Client {
- internal static class EpochExtensions {
- private const long TicksPerMillisecond = 10000;
- private const long TicksPerSecond = TicksPerMillisecond * 1000;
- private const long TicksPerMinute = TicksPerSecond * 60;
- private const long TicksPerHour = TicksPerMinute * 60;
- private const long TicksPerDay = TicksPerHour * 24;
- private const int DaysPerYear = 365;
- private const int DaysPer4Years = DaysPerYear * 4 + 1;
- private const int DaysPer100Years = DaysPer4Years * 25 - 1;
- private const int DaysPer400Years = DaysPer100Years * 4 + 1;
- private const int DaysTo1970 = DaysPer400Years * 4 + DaysPer100Years * 3 + DaysPer4Years * 17 + DaysPerYear;
- private const long UnixEpochTicks = DaysTo1970 * TicksPerDay;
+static class EpochExtensions {
+ private const long TicksPerMillisecond = 10000;
+ private const long TicksPerSecond = TicksPerMillisecond * 1000;
+ private const long TicksPerMinute = TicksPerSecond * 60;
+ private const long TicksPerHour = TicksPerMinute * 60;
+ private const long TicksPerDay = TicksPerHour * 24;
+ private const int DaysPerYear = 365;
+ private const int DaysPer4Years = DaysPerYear * 4 + 1;
+ private const int DaysPer100Years = DaysPer4Years * 25 - 1;
+ private const int DaysPer400Years = DaysPer100Years * 4 + 1;
+ private const int DaysTo1970 = DaysPer400Years * 4 + DaysPer100Years * 3 + DaysPer4Years * 17 + DaysPerYear;
+ private const long UnixEpochTicks = DaysTo1970 * TicksPerDay;
- private static readonly DateTime UnixEpoch = new(UnixEpochTicks, DateTimeKind.Utc);
+ private static readonly DateTime UnixEpoch = new(UnixEpochTicks, DateTimeKind.Utc);
- public static DateTime FromTicksSinceEpoch(this long value) =>
- new DateTime(UnixEpoch.Ticks + value, DateTimeKind.Utc);
+ private static readonly DateTime UnixEpoch = new(UnixEpochTicks, DateTimeKind.Utc);
- public static long ToTicksSinceEpoch(this DateTime value) =>
- (value - UnixEpoch).Ticks;
- }
+ public static long ToTicksSinceEpoch(this DateTime value) => (value - UnixEpoch).Ticks;
}
diff --git a/src/EventStore.Client.Common/Shims/TaskCompletionSource.cs b/src/EventStore.Client.Common/Shims/TaskCompletionSource.cs
index 5e23aa609..e7e88a97f 100644
--- a/src/EventStore.Client.Common/Shims/TaskCompletionSource.cs
+++ b/src/EventStore.Client.Common/Shims/TaskCompletionSource.cs
@@ -1,5 +1,5 @@
#if !NET
-namespace System.Threading.Tasks;
+namespace System.Threading.Tasks;
internal class TaskCompletionSource : TaskCompletionSource