C# Класс Castle.MonoRail.Framework.MonoRailHttpHandlerFactory

Coordinates the creation of new MonoRailHttpHandler and uses the configuration to obtain the correct factories instances.
Наследование: IHttpHandlerFactory
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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