コード例 #1
0
        private void SetRequestProperties(RequestProperties requestProperties)
        {
            requestProperties.Partner   = GetApiPartner();
            requestProperties.AuditName = "api:" + requestProperties.Partner.PartnerId.ToString();

            // todo: add the other properties
        }
コード例 #2
0
        public async Task InvokeAsync(HttpContext context, RequestProperties requestProperties)
        {
            SetRequestProperties(requestProperties);

            context.Response.OnStarting(async() => { await SetResponseHeaders(context.Response); });

            await _next(context);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        public async Task InvokeAsync(HttpContext context, RequestProperties requestProperties)
        {
            await _next(context);

            await HandleFailureResult(context);
        }