Skip to content

Commit a9cf0d0

Browse files
author
Joel Mitchell
committed
Fixed bug with setting di registration
1 parent d3291aa commit a9cf0d0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Cofoundry.Core.BackgroundTasks;
2+
using Cofoundry.Core.Configuration;
23
using Cofoundry.Core.DependencyInjection;
34
using System;
45
using System.Collections.Generic;
@@ -16,6 +17,7 @@ public void Register(IContainerRegister container)
1617
.RegisterType<IHangfireBackgroundTaskInitializer, HangfireBackgroundTaskInitializer>()
1718
.RegisterType<IHangfireServerInitializer, HangfireServerInitializer>()
1819
.RegisterType<IBackgroundTaskScheduler, HangfireBackgroundTaskScheduler>()
20+
.RegisterFactory<HangfireSettings, ConfigurationSettingsFactory<HangfireSettings>>()
1921
;
2022
}
2123
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Owin;
1+
 using Owin;
22
using System;
33
using System.Collections.Generic;
44
using System.Linq;

0 commit comments

Comments
 (0)