C# Class MongoSessionStore.MongoSessionStoreProvider

Inheritance: System.Web.SessionState.SessionStateStoreProviderBase
Afficher le fichier Open project: paralect/MongoSessionStore

Méthodes publiques

Свойство Type Description
_applicationName string
_connectionString string

Méthodes publiques

Méthode 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

Méthode 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 méthode

public CreateNewStoreData ( HttpContext context, int timeout ) : System.Web.SessionState.SessionStateStoreData
context System.Web.HttpContext
timeout int
Résultat System.Web.SessionState.SessionStateStoreData

CreateUninitializedItem() public méthode

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

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EndRequest() public méthode

public EndRequest ( HttpContext context ) : void
context System.Web.HttpContext
Résultat void

GetItem() public méthode

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
Résultat System.Web.SessionState.SessionStateStoreData

GetItemExclusive() public méthode

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
Résultat System.Web.SessionState.SessionStateStoreData

Initialize() public méthode

public Initialize ( string name, NameValueCollection config ) : void
name string
config System.Collections.Specialized.NameValueCollection
Résultat void

InitializeRequest() public méthode

public InitializeRequest ( HttpContext context ) : void
context System.Web.HttpContext
Résultat void

ReleaseItemExclusive() public méthode

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

RemoveItem() public méthode

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
Résultat void

ResetItemTimeout() public méthode

public ResetItemTimeout ( HttpContext context, string id ) : void
context System.Web.HttpContext
id string
Résultat void

SetAndReleaseItemExclusive() public méthode

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
Résultat void

SetItemExpireCallback() public méthode

public SetItemExpireCallback ( SessionStateItemExpireCallback expireCallback ) : bool
expireCallback SessionStateItemExpireCallback
Résultat bool

Property Details

_applicationName public_oe property

public string _applicationName
Résultat string

_connectionString public_oe property

public string _connectionString
Résultat string