Skip to content

Commit

Permalink
remove hangfire postgresql storage package
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas steuck committed Jan 24, 2025
1 parent 691c718 commit a91eb19
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
</PackageVersion>
<PackageVersion Version="1.8.10" Include="HangFire" />
<PackageVersion Version="1.8.0" Include="Hangfire.MemoryStorage" />
<PackageVersion Version="1.20.5" Include="Hangfire.PostgreSql" />
<PackageVersion Version="2.5.0" Include="KafkaFlow" />
<PackageVersion Version="2.5.0" Include="KafkaFlow.Extensions.Hosting" />
<PackageVersion Version="2.5.0" Include="KafkaFlow.LogHandler.Microsoft" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
<ItemGroup>
<PackageReference Include="AspNetCore.HealthChecks.Hangfire" />
<PackageReference Include="HangFire" />
<PackageReference Include="Hangfire.MemoryStorage" />
<PackageReference Include="Hangfire.PostgreSql" />
<PackageReference Include="Microsoft.FeatureManagement" />
<PackageReference Include="Newtonsoft.Json" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ public void CanSpecifyServerOptions()
options.Should().NotBeNull();
options.SchedulePollingInterval.Should().Be(TimeSpan.FromMilliseconds(HangfireConfiguration.PollingIntervalInMs!.Value));
options.WorkerCount.Should().Be(HangfireConfiguration.WorkerCount!.Value);

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@
<ProjectReference Include="..\..\src\PiBox.Plugins.Jobs.Hangfire\PiBox.Plugins.Jobs.Hangfire.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Hangfire.MemoryStorage" />
</ItemGroup>

</Project>
5 changes: 1 addition & 4 deletions example/src/PiBox.Example.Service/TestHangfire.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Hangfire;
using Hangfire.MemoryStorage;
using PiBox.Plugins.Jobs.Hangfire;
using PiBox.Plugins.Jobs.Hangfire.Attributes;
using PiBox.Plugins.Jobs.Hangfire.Job;
Expand All @@ -11,9 +10,7 @@ public class TestHangfire : IHangfireConfigurator
public bool IncludesStorage => false;

public void Configure(IGlobalConfiguration config)
{
config.UseMemoryStorage();
}
{ }

public void ConfigureServer(BackgroundJobServerOptions options)
{
Expand Down

0 comments on commit a91eb19

Please sign in to comment.