From a91eb1993087f791b80cfec4c339ee123e51ccd6 Mon Sep 17 00:00:00 2001 From: thomas steuck Date: Fri, 24 Jan 2025 11:00:42 +0100 Subject: [PATCH] remove hangfire postgresql storage package --- Directory.Packages.props | 1 - .../PiBox.Plugins.Jobs.Hangfire.csproj | 2 -- .../PiBox.Plugins.Jobs.Hangfire.Tests/HangfirePluginTests.cs | 1 - .../PiBox.Plugins.Jobs.Hangfire.Tests.csproj | 4 ++++ example/src/PiBox.Example.Service/TestHangfire.cs | 5 +---- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index d1c00b8..fb1a1a4 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -26,7 +26,6 @@ - diff --git a/PiBox.Plugins/Jobs/Hangfire/src/PiBox.Plugins.Jobs.Hangfire/PiBox.Plugins.Jobs.Hangfire.csproj b/PiBox.Plugins/Jobs/Hangfire/src/PiBox.Plugins.Jobs.Hangfire/PiBox.Plugins.Jobs.Hangfire.csproj index 6b2d533..1773ff7 100644 --- a/PiBox.Plugins/Jobs/Hangfire/src/PiBox.Plugins.Jobs.Hangfire/PiBox.Plugins.Jobs.Hangfire.csproj +++ b/PiBox.Plugins/Jobs/Hangfire/src/PiBox.Plugins.Jobs.Hangfire/PiBox.Plugins.Jobs.Hangfire.csproj @@ -12,8 +12,6 @@ - - diff --git a/PiBox.Plugins/Jobs/Hangfire/test/PiBox.Plugins.Jobs.Hangfire.Tests/HangfirePluginTests.cs b/PiBox.Plugins/Jobs/Hangfire/test/PiBox.Plugins.Jobs.Hangfire.Tests/HangfirePluginTests.cs index 2185234..71db252 100644 --- a/PiBox.Plugins/Jobs/Hangfire/test/PiBox.Plugins.Jobs.Hangfire.Tests/HangfirePluginTests.cs +++ b/PiBox.Plugins/Jobs/Hangfire/test/PiBox.Plugins.Jobs.Hangfire.Tests/HangfirePluginTests.cs @@ -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); - } } } diff --git a/PiBox.Plugins/Jobs/Hangfire/test/PiBox.Plugins.Jobs.Hangfire.Tests/PiBox.Plugins.Jobs.Hangfire.Tests.csproj b/PiBox.Plugins/Jobs/Hangfire/test/PiBox.Plugins.Jobs.Hangfire.Tests/PiBox.Plugins.Jobs.Hangfire.Tests.csproj index 13b777a..afed531 100644 --- a/PiBox.Plugins/Jobs/Hangfire/test/PiBox.Plugins.Jobs.Hangfire.Tests/PiBox.Plugins.Jobs.Hangfire.Tests.csproj +++ b/PiBox.Plugins/Jobs/Hangfire/test/PiBox.Plugins.Jobs.Hangfire.Tests/PiBox.Plugins.Jobs.Hangfire.Tests.csproj @@ -11,4 +11,8 @@ + + + + diff --git a/example/src/PiBox.Example.Service/TestHangfire.cs b/example/src/PiBox.Example.Service/TestHangfire.cs index e180d04..9083ea0 100644 --- a/example/src/PiBox.Example.Service/TestHangfire.cs +++ b/example/src/PiBox.Example.Service/TestHangfire.cs @@ -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; @@ -11,9 +10,7 @@ public class TestHangfire : IHangfireConfigurator public bool IncludesStorage => false; public void Configure(IGlobalConfiguration config) - { - config.UseMemoryStorage(); - } + { } public void ConfigureServer(BackgroundJobServerOptions options) {