private void SetRequestProperties(RequestProperties requestProperties) { requestProperties.Partner = GetApiPartner(); requestProperties.AuditName = "api:" + requestProperties.Partner.PartnerId.ToString(); // todo: add the other properties }
public async Task InvokeAsync(HttpContext context, RequestProperties requestProperties) { SetRequestProperties(requestProperties); context.Response.OnStarting(async() => { await SetResponseHeaders(context.Response); }); await _next(context); }
public async Task InvokeAsync(HttpContext context, RequestProperties requestProperties) { await FilterRequestProperties(context); // Call the next delegate/middleware in the pipeline await _next(context); await FilterResponseProperties(context); }
public async Task InvokeAsync(HttpContext context, RequestProperties requestProperties) { await _next(context); await HandleFailureResult(context); }