C# 클래스 Castle.MonoRail.Framework.MonoRailHttpHandlerFactory

Coordinates the creation of new MonoRailHttpHandler and uses the configuration to obtain the correct factories instances.
상속: IHttpHandlerFactory
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

공개 메소드들

메소드 설명
GetHandler ( HttpContext context, String requestType, String url, String pathTranslated ) : IHttpHandler

Returns an instance of a class that implements the interface.

MonoRailHttpHandlerFactory ( ) : System

Initializes a new instance of the MonoRailHttpHandlerFactory class.

ReleaseHandler ( IHttpHandler handler ) : void

Enables a factory to reuse an existing handler instance.

비공개 메소드들

메소드 설명
CreateLogger ( String name, IServiceProvider provider ) : ILogger

This might be subject to race conditions, but I'd rather take the risk - which in the end means just replacing the instance - than creating locks that will affect every single request

ObtainMonoRailHandler ( IRailsEngineContext mrContext ) : IHttpHandler
ObtainMonoRailHandlerProvider ( IRailsEngineContext mrContext ) : IMonoRailHttpHandlerProvider

메소드 상세

GetHandler() 공개 메소드

Returns an instance of a class that implements the interface.
public GetHandler ( HttpContext context, String requestType, String url, String pathTranslated ) : IHttpHandler
context System.Web.HttpContext An instance of the class that provides references to intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.
requestType String The HTTP data transfer method (GET or POST) that the client uses.
url String The of the requested resource.
pathTranslated String The to the requested resource.
리턴 IHttpHandler

MonoRailHttpHandlerFactory() 공개 메소드

Initializes a new instance of the MonoRailHttpHandlerFactory class.
public MonoRailHttpHandlerFactory ( ) : System
리턴 System

ReleaseHandler() 공개 메소드

Enables a factory to reuse an existing handler instance.
public ReleaseHandler ( IHttpHandler handler ) : void
handler IHttpHandler The object to reuse.
리턴 void