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

Provides the services used and shared by the framework. Also is in charge of creating an implementation of IRailsEngineContext upon the start of a new request.
Наследование: IHttpModule
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Application System.Web.HttpApplication

Private Properties

Свойство Тип Описание
CreateController Controller
CreateControllerAndRunStartRequestFilters void
CreateControllerExecutor IControllerLifecycleExecutor
CreateRailsEngineContext IRailsEngineContext
IsMonoRailRequest bool
MarkRequestAsMonoRailRequest void
ObtainContextFromApplication IRailsEngineContext
ObtainRailsEngineContext IRailsEngineContext
OnAcquireRequestState void
OnAuthenticateRequest void
OnAuthorizeRequest void
OnBeginRequest void
OnEndRequest void
OnError void
OnPostRequestHandlerExecute void
OnPreRequestHandlerExecute void
OnReleaseRequestState void
OnResolveRequestCache void
OnStartMonoRailRequest void
OnUpdateRequestCache void
SubscribeToApplicationHooks void

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

Метод Описание
CreateAndStartContainer ( System.Web.HttpApplication context ) : void

Creates and starts MonoRail's service container.

Dispose ( ) : void

Disposes of the resources (other than memory) used by the module that implements

Init ( System.Web.HttpApplication context ) : void

Configures the framework, starts the services and application hooks.

Приватные методы

Метод Описание
CreateController ( IRailsEngineContext context ) : Controller

Uses the url information and the controller factory to instantiate the proper controller.

CreateControllerAndRunStartRequestFilters ( object sender, EventArgs e ) : void

Creates the controller, selects the target action and run start request filters.

CreateControllerExecutor ( Controller controller, IRailsEngineContext context ) : IControllerLifecycleExecutor

Creates the and initialize executor.

CreateRailsEngineContext ( HttpContext context ) : IRailsEngineContext
IsMonoRailRequest ( HttpContext context ) : bool
MarkRequestAsMonoRailRequest ( HttpContext context ) : void
ObtainContextFromApplication ( object sender ) : IRailsEngineContext
ObtainRailsEngineContext ( HttpContext context ) : IRailsEngineContext
OnAcquireRequestState ( object sender, EventArgs e ) : void
OnAuthenticateRequest ( object sender, EventArgs e ) : void
OnAuthorizeRequest ( object sender, EventArgs e ) : void
OnBeginRequest ( object sender, EventArgs e ) : void
OnEndRequest ( object sender, EventArgs e ) : void
OnError ( object sender, EventArgs e ) : void
OnPostRequestHandlerExecute ( object sender, EventArgs e ) : void
OnPreRequestHandlerExecute ( object sender, EventArgs e ) : void
OnReleaseRequestState ( object sender, EventArgs e ) : void
OnResolveRequestCache ( object sender, EventArgs e ) : void
OnStartMonoRailRequest ( object sender, EventArgs e ) : void

This method is invoked in response to BeginRequest event. It checks if the request should be treat by MonoRail (by reading the file extension) and if so, creates the IRailsEngineContext instance.

OnUpdateRequestCache ( object sender, EventArgs e ) : void
SubscribeToApplicationHooks ( System.Web.HttpApplication context ) : void

Registers to HttpApplication events

Описание методов

CreateAndStartContainer() публичный Метод

Creates and starts MonoRail's service container.
public CreateAndStartContainer ( System.Web.HttpApplication context ) : void
context System.Web.HttpApplication
Результат void

Dispose() публичный Метод

Disposes of the resources (other than memory) used by the module that implements
public Dispose ( ) : void
Результат void

Init() публичный Метод

Configures the framework, starts the services and application hooks.
public Init ( System.Web.HttpApplication context ) : void
context System.Web.HttpApplication
Результат void

Описание свойств

Application публичное статическое свойство

On Mono, WindsorContainerAccessorUtil needs this due to the initialization order differing to Microsoft's implementation
public static HttpApplication,System.Web Application
Результат System.Web.HttpApplication