Skip to content

Commit

Permalink
Bump to latest Azure Functions SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Nov 13, 2024
1 parent b7450e6 commit d599c0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/Web/GitHubDeviceFlowAuthentication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,10 @@ public async Task Invoke(FunctionContext context, FunctionExecutionDelegate next
{
case JsonResult jr:
if (jr.Value is not null)
await response.WriteAsJsonAsync(jr.Value, jr.ContentType ?? "application/json; charset=utf-8",
(HttpStatusCode)(jr.StatusCode ?? 200));
{
await response.WriteAsJsonAsync(jr.Value, jr.ContentType ?? "application/json; charset=utf-8");
response.StatusCode = (HttpStatusCode)(jr.StatusCode ?? 200);
}
else if (jr.StatusCode is not null)
response.StatusCode = (HttpStatusCode)jr.StatusCode;
break;
Expand Down
8 changes: 4 additions & 4 deletions src/Web/Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
<PackageReference Include="Devlooped.CredentialManager" Version="2.6.0" />
<PackageReference Include="DotNetConfig.Configuration" Version="1.2.0" />
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.23.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.0.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.2.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="1.3.2" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="2.0.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Timer" Version="4.3.1" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.18.1" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.0" />
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.22.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="1.4.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="2.0.0" />
<PackageReference Include="Azure.Extensions.AspNetCore.Configuration.Secrets" Version="1.3.2" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.1" />
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.2.0" />
Expand Down

0 comments on commit d599c0c

Please sign in to comment.