Skip to content

Commit e24d1a0

Browse files
committed
Updated to the latest Hangfire and Cofoundry beta packages and fixed breaking changes.
1 parent 64966a6 commit e24d1a0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</PropertyGroup>
1616

1717
<ItemGroup>
18-
<PackageReference Include="Cofoundry.Web" Version="0.3.2" />
19-
<PackageReference Include="Hangfire" Version="1.6.19" />
18+
<PackageReference Include="Cofoundry.Web" Version="0.4.0-beta0024" />
19+
<PackageReference Include="Hangfire" Version="1.6.20" />
2020
</ItemGroup>
2121
</Project>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ IAutoUpdateService autoUpdateService
3131

3232
public void ConfigureServices(IMvcBuilder mvcBuilder)
3333
{
34-
var isDbLocked = _autoUpdateService.IsLocked();
34+
// We have to block here as service configuration is not async.
35+
var isDbLocked = _autoUpdateService.IsLockedAsync().GetAwaiter().GetResult();
3536
var connectionString = _databaseSettings.ConnectionString;
3637

3738
mvcBuilder

0 commit comments

Comments
 (0)