diff --git a/src/main/Hangfire.Storage.SQLite/HangfireDbContext.cs b/src/main/Hangfire.Storage.SQLite/HangfireDbContext.cs index f37ef4e..539b011 100644 --- a/src/main/Hangfire.Storage.SQLite/HangfireDbContext.cs +++ b/src/main/Hangfire.Storage.SQLite/HangfireDbContext.cs @@ -38,15 +38,6 @@ public class HangfireDbContext : IDisposable /// Table prefix internal HangfireDbContext(SQLiteConnection connection, string prefix = "hangfire") { - //UTC - Internal JSON - GlobalConfiguration.Configuration - .UseSerializerSettings(new JsonSerializerSettings() - { - DateTimeZoneHandling = DateTimeZoneHandling.Utc, - DateFormatHandling = DateFormatHandling.IsoDateFormat, - DateFormatString = "yyyy-MM-dd HH:mm:ss.fff" - }); - Database = connection; ConnectionId = Guid.NewGuid().ToString(); diff --git a/src/main/Hangfire.Storage.SQLite/SQLiteDistributedLock.cs b/src/main/Hangfire.Storage.SQLite/SQLiteDistributedLock.cs index 11cbd3b..71d3043 100644 --- a/src/main/Hangfire.Storage.SQLite/SQLiteDistributedLock.cs +++ b/src/main/Hangfire.Storage.SQLite/SQLiteDistributedLock.cs @@ -160,11 +160,11 @@ private void Acquire(TimeSpan timeout) throw new DistributedLockTimeoutException(_resource); } } - catch (DistributedLockTimeoutException ex) + catch (DistributedLockTimeoutException) { throw; } - catch (Exception ex) + catch (Exception) { throw; } @@ -183,7 +183,7 @@ private void Release() lock (EventWaitHandleName) Monitor.Pulse(EventWaitHandleName); } - catch (Exception ex) + catch (Exception) { throw; } diff --git a/src/main/Hangfire.Storage.SQLite/SQLiteWriteOnlyTransaction.cs b/src/main/Hangfire.Storage.SQLite/SQLiteWriteOnlyTransaction.cs index 322da3d..b5a74fc 100644 --- a/src/main/Hangfire.Storage.SQLite/SQLiteWriteOnlyTransaction.cs +++ b/src/main/Hangfire.Storage.SQLite/SQLiteWriteOnlyTransaction.cs @@ -326,7 +326,7 @@ public override void SetJobState(string jobId, IState state) _.Database.Commit(); } - catch (Exception ex) + catch (Exception) { _.Database.Rollback(); diff --git a/src/samples/WebSample/WebSample.csproj b/src/samples/WebSample/WebSample.csproj index f3fd659..d3dab83 100644 --- a/src/samples/WebSample/WebSample.csproj +++ b/src/samples/WebSample/WebSample.csproj @@ -1,15 +1,16 @@ - net6.0 + net8.0 enable enable - - + + +