Skip to content

Commit

Permalink
0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Clase committed Dec 31, 2023
1 parent dfce307 commit 8ca2436
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
9 changes: 0 additions & 9 deletions src/main/Hangfire.Storage.SQLite/HangfireDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,6 @@ public class HangfireDbContext : IDisposable
/// <param name="prefix">Table prefix</param>
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();
Expand Down
6 changes: 3 additions & 3 deletions src/main/Hangfire.Storage.SQLite/SQLiteDistributedLock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -183,7 +183,7 @@ private void Release()
lock (EventWaitHandleName)
Monitor.Pulse(EventWaitHandleName);
}
catch (Exception ex)
catch (Exception)
{
throw;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public override void SetJobState(string jobId, IState state)
_.Database.Commit();
}
catch (Exception ex)
catch (Exception)
{
_.Database.Rollback();
Expand Down
7 changes: 4 additions & 3 deletions src/samples/WebSample/WebSample.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Hangfire" Version="1.8.0" />
<PackageReference Include="Hangfire.Heartbeat" Version="0.5.1" />
<PackageReference Include="Hangfire" Version="1.8.7" />
<PackageReference Include="Hangfire.Heartbeat" Version="0.6.0" />
<PackageReference Include="Hangfire.JobsLogger" Version="0.2.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 8ca2436

Please sign in to comment.