Skip to content

Commit f5b6ff6

Browse files
committed
Updated to latest Cofoundry and fixed compatibility issues
1 parent 3d9ed6d commit f5b6ff6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Cofoundry.Plugins.BackgroundTasks.Hangfire/Bootstrap/HangfireBackgroundTasksDependencyRegistration.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ public class HangfireBackgroundTasksDependencyRegistration : IDependencyRegistra
1414
public void Register(IContainerRegister container)
1515
{
1616
container
17-
.RegisterType<IHangfireBackgroundTaskInitializer, HangfireBackgroundTaskInitializer>()
18-
.RegisterType<IHangfireServerInitializer, HangfireServerInitializer>()
19-
.RegisterType<IBackgroundTaskScheduler, HangfireBackgroundTaskScheduler>()
17+
.Register<IHangfireBackgroundTaskInitializer, HangfireBackgroundTaskInitializer>()
18+
.Register<IHangfireServerInitializer, HangfireServerInitializer>()
19+
.Register<IBackgroundTaskScheduler, HangfireBackgroundTaskScheduler>()
2020
;
2121
}
2222
}

src/Cofoundry.Plugins.BackgroundTasks.Hangfire/Cofoundry.Plugins.BackgroundTasks.Hangfire.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</PropertyGroup>
1616

1717
<ItemGroup>
18-
<PackageReference Include="Cofoundry.Web" Version="0.2.0-beta0056" />
18+
<PackageReference Include="Cofoundry.Web" Version="0.2.0-beta0098" />
1919
<PackageReference Include="Hangfire" Version="1.6.17" />
2020
</ItemGroup>
2121
</Project>

src/Cofoundry.Plugins.BackgroundTasks.Hangfire/Startup/HangfireStartupConfigurationTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public int Ordering
3232
get { return (int)StartupTaskOrdering.Normal; }
3333
}
3434

35-
public Type[] RunBefore { get; } = new Type[] { typeof(MvcStartupConfigurationTask) };
35+
public ICollection<Type> RunBefore { get; } = new Type[] { typeof(MvcStartupConfigurationTask) };
3636

3737
public void Configure(IApplicationBuilder app)
3838
{

0 commit comments

Comments
 (0)