C# Class Raven.AspNetProviders.RavenSessionStateStoreProvider

Inheritance: System.Web.SessionState.SessionStateStoreProviderBase
ファイルを表示 Open project: bastervrugt/Raven.AspNetProviders

Public Methods

Method Description
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.

Private Methods

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

Method Details

CreateNewStoreData() public method

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

CreateUninitializedItem() public method

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

Dispose() public method

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

EndRequest() public method

public EndRequest ( HttpContext context ) : void
context System.Web.HttpContext
return void

GetItem() public method

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
return System.Web.SessionState.SessionStateStoreData

GetItemExclusive() public method

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
return System.Web.SessionState.SessionStateStoreData

Initialize() public method

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.
return void

InitializeRequest() public method

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.
return void

RavenSessionStateStoreProvider() public method

Public parameterless constructor
public RavenSessionStateStoreProvider ( ) : System
return System

RavenSessionStateStoreProvider() public method

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

ReleaseItemExclusive() public method

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

RemoveItem() public method

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
return void

ResetItemTimeout() public method

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

SetAndReleaseItemExclusive() public method

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
return void

SetItemExpireCallback() public method

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. ///
return bool