C# Class MongoSessionStore.MongoSessionStoreProvider

Inheritance: System.Web.SessionState.SessionStateStoreProviderBase
Datei anzeigen Open project: paralect/MongoSessionStore

Public Properties

Property Type Description
_applicationName string
_connectionString string

Public Methods

Method Description
CreateNewStoreData ( HttpContext context, int timeout ) : System.Web.SessionState.SessionStateStoreData
CreateUninitializedItem ( HttpContext context, string id, int timeout ) : void
Dispose ( ) : void
EndRequest ( HttpContext context ) : void
GetItem ( HttpContext context, string id, bool &locked, System.TimeSpan &lockAge, object &lockId, SessionStateActions &actionFlags ) : System.Web.SessionState.SessionStateStoreData
GetItemExclusive ( HttpContext context, string id, bool &locked, System.TimeSpan &lockAge, object &lockId, SessionStateActions &actionFlags ) : System.Web.SessionState.SessionStateStoreData
Initialize ( string name, NameValueCollection config ) : void
InitializeRequest ( HttpContext context ) : void
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

Private Methods

Method Description
Deserialize ( HttpContext context, byte serializedItems, int timeout ) : System.Web.SessionState.SessionStateStoreData
GetSessionStoreItem ( bool lockRecord, HttpContext context, string id, bool &locked, System.TimeSpan &lockAge, object &lockId, SessionStateActions &actionFlags ) : System.Web.SessionState.SessionStateStoreData
Serialize ( System.Web.SessionState.SessionStateItemCollection items ) : byte[]
WriteToEventLog ( Exception e, string action ) : 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

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 &actionFlags ) : System.Web.SessionState.SessionStateStoreData
context System.Web.HttpContext
id string
locked bool
lockAge System.TimeSpan
lockId object
actionFlags SessionStateActions
return System.Web.SessionState.SessionStateStoreData

GetItemExclusive() public method

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

Initialize() public method

public Initialize ( string name, NameValueCollection config ) : void
name string
config System.Collections.Specialized.NameValueCollection
return void

InitializeRequest() public method

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

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

public SetItemExpireCallback ( SessionStateItemExpireCallback expireCallback ) : bool
expireCallback SessionStateItemExpireCallback
return bool

Property Details

_applicationName public_oe property

public string _applicationName
return string

_connectionString public_oe property

public string _connectionString
return string