C# 클래스 Naif.Blog.Framework.ApplicationContextMiddleware

The ApplicationContextMiddleware component processes the request to built the ApplicationContext object used for the duration of the request. The IApplicationContext object is passed in by Dependency Injection with a "scoped" lifetime, ensuring that a new object is created for each request.
파일 보기 프로젝트 열기: cnurse/Naif.Blog

공개 메소드들

메소드 설명
ApplicationContextMiddleware ( RequestDelegate next, IHostingEnvironment env, IMemoryCache memoryCache, ILoggerFactory loggerFactory ) : Microsoft.AspNetCore.Hosting
Invoke ( HttpContext context, IApplicationContext appContext ) : System.Threading.Tasks.Task

비공개 메소드들

메소드 설명
GetBlogs ( ) : IEnumerable

메소드 상세

ApplicationContextMiddleware() 공개 메소드

public ApplicationContextMiddleware ( RequestDelegate next, IHostingEnvironment env, IMemoryCache memoryCache, ILoggerFactory loggerFactory ) : Microsoft.AspNetCore.Hosting
next RequestDelegate
env IHostingEnvironment
memoryCache IMemoryCache
loggerFactory ILoggerFactory
리턴 Microsoft.AspNetCore.Hosting

Invoke() 공개 메소드

public Invoke ( HttpContext context, IApplicationContext appContext ) : System.Threading.Tasks.Task
context HttpContext
appContext IApplicationContext
리턴 System.Threading.Tasks.Task