C# 클래스 Raven.AspNetProviders.RavenSessionStateStoreProvider

상속: System.Web.SessionState.SessionStateStoreProviderBase
파일 보기 프로젝트 열기: bastervrugt/Raven.AspNetProviders

공개 메소드들

메소드 설명
CreateNewStoreData ( HttpContext context, int timeout ) : System.Web.SessionState.SessionStateStoreData
CreateUninitializedItem ( HttpContext context, string id, int timeout ) : void
Dispose ( ) : void

Releases all resources used by the T:System.Web.SessionState.SessionStateStoreProviderBase implementation.

EndRequest ( HttpContext context ) : void
GetItem ( HttpContext context, string id, bool &locked, System.TimeSpan &lockAge, object &lockId, SessionStateActions &actions ) : System.Web.SessionState.SessionStateStoreData
GetItemExclusive ( HttpContext context, string id, bool &locked, System.TimeSpan &lockAge, object &lockId, SessionStateActions &actions ) : System.Web.SessionState.SessionStateStoreData
Initialize ( string name, NameValueCollection config ) : void

Initializes the provider.

InitializeRequest ( HttpContext context ) : void

Called by the T:System.Web.SessionState.SessionStateModule object for per-request initialization.

RavenSessionStateStoreProvider ( ) : System

Public parameterless constructor

RavenSessionStateStoreProvider ( IDocumentStore documentStore ) : System

Constructor accepting a document store instance, used for testing.

ReleaseItemExclusive ( HttpContext context, string id, object lockId ) : void
RemoveItem ( HttpContext context, string id, object lockId, System.Web.SessionState.SessionStateStoreData item ) : void
ResetItemTimeout ( HttpContext context, string id ) : void
SetAndReleaseItemExclusive ( HttpContext context, string id, System.Web.SessionState.SessionStateStoreData item, object lockId, bool newItem ) : void
SetItemExpireCallback ( SessionStateItemExpireCallback expireCallback ) : bool

Sets a reference to the T:System.Web.SessionState.SessionStateItemExpireCallback delegate for the Session_OnEnd event defined in the Global.asax file.

비공개 메소드들

메소드 설명
GetItem ( HttpContext context, string id, bool &locked, System.TimeSpan &lockAge, object &lockId, SessionStateActions &actions, bool lockRecord ) : System.Web.SessionState.SessionStateStoreData
SetConfigurationProperties ( NameValueCollection config ) : void

메소드 상세

CreateNewStoreData() 공개 메소드

public CreateNewStoreData ( HttpContext context, int timeout ) : System.Web.SessionState.SessionStateStoreData
context System.Web.HttpContext
timeout int
리턴 System.Web.SessionState.SessionStateStoreData

CreateUninitializedItem() 공개 메소드

public CreateUninitializedItem ( HttpContext context, string id, int timeout ) : void
context System.Web.HttpContext
id string
timeout int
리턴 void

Dispose() 공개 메소드

Releases all resources used by the T:System.Web.SessionState.SessionStateStoreProviderBase implementation.
public Dispose ( ) : void
리턴 void

EndRequest() 공개 메소드

public EndRequest ( HttpContext context ) : void
context System.Web.HttpContext
리턴 void

GetItem() 공개 메소드

public GetItem ( HttpContext context, string id, bool &locked, System.TimeSpan &lockAge, object &lockId, SessionStateActions &actions ) : System.Web.SessionState.SessionStateStoreData
context System.Web.HttpContext
id string
locked bool
lockAge System.TimeSpan
lockId object
actions SessionStateActions
리턴 System.Web.SessionState.SessionStateStoreData

GetItemExclusive() 공개 메소드

public GetItemExclusive ( HttpContext context, string id, bool &locked, System.TimeSpan &lockAge, object &lockId, SessionStateActions &actions ) : System.Web.SessionState.SessionStateStoreData
context System.Web.HttpContext
id string
locked bool
lockAge System.TimeSpan
lockId object
actions SessionStateActions
리턴 System.Web.SessionState.SessionStateStoreData

Initialize() 공개 메소드

Initializes the provider.
The name of the provider is null. The name of the provider has a length of zero. An attempt is made to call /// /// on a provider after the provider has already been initialized. ///
public Initialize ( string name, NameValueCollection config ) : void
name string The friendly name of the provider.
config System.Collections.Specialized.NameValueCollection A collection of the name/value pairs representing the provider-specific attributes specified in the configuration for this provider.
리턴 void

InitializeRequest() 공개 메소드

Called by the T:System.Web.SessionState.SessionStateModule object for per-request initialization.
public InitializeRequest ( HttpContext context ) : void
context System.Web.HttpContext The for the current request.
리턴 void

RavenSessionStateStoreProvider() 공개 메소드

Public parameterless constructor
public RavenSessionStateStoreProvider ( ) : System
리턴 System

RavenSessionStateStoreProvider() 공개 메소드

Constructor accepting a document store instance, used for testing.
public RavenSessionStateStoreProvider ( IDocumentStore documentStore ) : System
documentStore IDocumentStore
리턴 System

ReleaseItemExclusive() 공개 메소드

public ReleaseItemExclusive ( HttpContext context, string id, object lockId ) : void
context System.Web.HttpContext
id string
lockId object
리턴 void

RemoveItem() 공개 메소드

public RemoveItem ( HttpContext context, string id, object lockId, System.Web.SessionState.SessionStateStoreData item ) : void
context System.Web.HttpContext
id string
lockId object
item System.Web.SessionState.SessionStateStoreData
리턴 void

ResetItemTimeout() 공개 메소드

public ResetItemTimeout ( HttpContext context, string id ) : void
context System.Web.HttpContext
id string
리턴 void

SetAndReleaseItemExclusive() 공개 메소드

public SetAndReleaseItemExclusive ( HttpContext context, string id, System.Web.SessionState.SessionStateStoreData item, object lockId, bool newItem ) : void
context System.Web.HttpContext
id string
item System.Web.SessionState.SessionStateStoreData
lockId object
newItem bool
리턴 void

SetItemExpireCallback() 공개 메소드

Sets a reference to the T:System.Web.SessionState.SessionStateItemExpireCallback delegate for the Session_OnEnd event defined in the Global.asax file.
public SetItemExpireCallback ( SessionStateItemExpireCallback expireCallback ) : bool
expireCallback SessionStateItemExpireCallback The /// delegate for the Session_OnEnd event defined in the Global.asax file. ///
리턴 bool