C# Class CustomMiddleware.UserAgentLoggerMiddleware

显示文件 Open project: DanWahlin/ASP.NET5Demos

Public Methods

Method Description
Invoke ( HttpContext context ) : System.Threading.Tasks.Task
UserAgentLoggerMiddleware ( RequestDelegate next, ILoggerFactory loggerFactory ) : Microsoft.AspNetCore.Builder

Method Details

Invoke() public method

public Invoke ( HttpContext context ) : System.Threading.Tasks.Task
context HttpContext
return System.Threading.Tasks.Task

UserAgentLoggerMiddleware() public method

public UserAgentLoggerMiddleware ( RequestDelegate next, ILoggerFactory loggerFactory ) : Microsoft.AspNetCore.Builder
next RequestDelegate
loggerFactory ILoggerFactory
return Microsoft.AspNetCore.Builder