public Invoke ( IOwinContext context ) : System.Threading.Tasks.Task | ||
context | IOwinContext | |
return | System.Threading.Tasks.Task |
private static void Register(IApplicationBuilder builder) { builder.Use(async(context, next) => { var result = SimplifyWebOwinMiddleware.Invoke(context); await result.Task; if (result.Status == RequestHandlingStatus.RequestWasUnhandled) { await next.Invoke(); } }); }
private static void RegisterAsTerminal(IApplicationBuilder builder) { builder.Run(async(context) => await SimplifyWebOwinMiddleware.Invoke(context).Task); }