1
0
mirror of https://github.com/bitwarden/server synced 2026-01-08 11:33:26 +00:00

Run formatting (#2230)

This commit is contained in:
Justin Baur
2022-08-29 16:06:55 -04:00
committed by GitHub
parent 9b7aef0763
commit 7f5f010e1e
1205 changed files with 73813 additions and 75022 deletions

View File

@@ -2,21 +2,20 @@
using Bit.Core.Settings;
using Microsoft.AspNetCore.Http;
namespace Bit.Core.Utilities
namespace Bit.Core.Utilities;
public class CurrentContextMiddleware
{
public class CurrentContextMiddleware
private readonly RequestDelegate _next;
public CurrentContextMiddleware(RequestDelegate next)
{
private readonly RequestDelegate _next;
_next = next;
}
public CurrentContextMiddleware(RequestDelegate next)
{
_next = next;
}
public async Task Invoke(HttpContext httpContext, ICurrentContext currentContext, GlobalSettings globalSettings)
{
await currentContext.BuildAsync(httpContext, globalSettings);
await _next.Invoke(httpContext);
}
public async Task Invoke(HttpContext httpContext, ICurrentContext currentContext, GlobalSettings globalSettings)
{
await currentContext.BuildAsync(httpContext, globalSettings);
await _next.Invoke(httpContext);
}
}