C# 클래스 Castle.MonoRail.Framework.Extensions.Session.CustomSessionExtension

This extension allow one to provide a custom implementation of the session available on IEngineContext
To successfully install this extension you must add the attribute customSession to the monoRail configuration node and register the extension on the extensions node. <monoRail customSession="Type name that implements ICustomSessionFactory"> <extensions> <extension type="Castle.MonoRail.Framework.Extensions.Session.CustomSessionExtension, Castle.MonoRail.Framework" /> </extensions> </monoRail>
상속: IMonoRailExtension
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
Service ( IServiceProvider provider ) : void

Services the specified provider.

SetExtensionConfigNode ( XmlNode node ) : void

Gives to the extension implementor a chance to read attributes and child nodes of the extension node

비공개 메소드들

메소드 설명
Init ( ExtensionManager manager, Castle.MonoRail.Framework.Configuration.MonoRailConfiguration configuration ) : void

Reads the attribute customSession from MonoRailConfiguration and instantiate it based on the type name provided.

OnAdquireSessionState ( IRailsEngineContext context ) : void

Overrides the ISession instance on IRailsEngineContext.

Note that the session available through IHttpContext is left untouched

OnReleaseSessionState ( IRailsEngineContext context ) : void

Retrives the ISession instance from IRailsEngineContext. and invokes ICustomSessionFactory.PersistSession

메소드 상세

Service() 공개 메소드

Services the specified provider.
public Service ( IServiceProvider provider ) : void
provider IServiceProvider The provider.
리턴 void

SetExtensionConfigNode() 공개 메소드

Gives to the extension implementor a chance to read attributes and child nodes of the extension node
public SetExtensionConfigNode ( XmlNode node ) : void
node System.Xml.XmlNode The node that defines the MonoRail extension
리턴 void