Skip to content

Commit 3d9ed6d

Browse files
committed
Updated to .net core 2.0
1 parent eac400e commit 3d9ed6d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

build.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Task("Patch-Assembly-Version")
4747

4848
Information("Building version {0} of Cofoundry.", versionInfo.InformationalVersion);
4949

50-
isPrerelease = !string.IsNullOrEmpty(versionInfo.PreReleaseNumber);
50+
isPrerelease = versionInfo.PreReleaseNumber.HasValue;
5151

5252
// Patch the version number so it's picked up when dependent projects are references
5353
// as nuget dependencies. Can't find a better way to do this.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard1.6</TargetFramework>
4+
<TargetFramework>netstandard2.0</TargetFramework>
55

66
<PackageId>Cofoundry.Plugins.BackgroundTasks.Hangfire</PackageId>
77
<Description>Hangfire implementation of Cofoundry.Core.BackgroundTasks.</Description>
@@ -15,7 +15,7 @@
1515
</PropertyGroup>
1616

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

src/Cofoundry.Plugins.BackgroundTasks.Hangfire/HangfireDashboardAuthorizationFilter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public bool Authorize([NotNull] DashboardContext context)
1717
// Hangfire does not support async auth:
1818
// https://github.com/HangfireIO/Hangfire/issues/827
1919
var userContext = service
20-
.GetCurrentContextAsync()
20+
.GetCurrentContextByUserAreaAsync(CofoundryAdminUserArea.AreaCode)
2121
.ConfigureAwait(false).GetAwaiter().GetResult();
2222

2323
return userContext.IsCofoundryUser();

0 commit comments

Comments
 (0)