Method | Description | |
---|---|---|
CreateNewStoreData ( System context, int timeout ) : System.Web.SessionState.SessionStateStoreData | ||
CreateUninitializedItem ( System context, string id, int timeout ) : void | ||
Dispose ( ) : void | ||
EndRequest ( System context ) : void | ||
GetItem ( |
SessionStateProviderBase.GetItem
|
|
GetItemExclusive ( |
SessionStateProviderBase.GetItemExclusive
|
|
Initialize ( string name, System config ) : void | ||
InitializeRequest ( System context ) : void | ||
ReleaseItemExclusive ( System context, string id, object lockId ) : void | ||
RemoveItem ( System context, string id, object lockId, System.Web.SessionState.SessionStateStoreData item ) : void | ||
ResetItemTimeout ( System context, string id ) : void | ||
SetAndReleaseItemExclusive ( |
SessionStateProviderBase.SetAndReleaseItemExclusive
|
|
SetItemExpireCallback ( SessionStateItemExpireCallback expireCallback ) : bool |
Method | Description | |
---|---|---|
Deserialize ( |
||
GetSessionCollection ( ) : MongoCollection |
||
GetSessionStoreItem ( bool lockRecord, |
GetSessionStoreItem is called by both the GetItem and GetItemExclusive methods. GetSessionStoreItem retrieves the session data from the data source. If the lockRecord parameter is true (in the case of GetItemExclusive), then GetSessionStoreItem locks the record and sets a new LockId and LockDate.
|
|
Serialize ( System.Web.SessionState.SessionStateItemCollection items ) : string |
Serialize is called by the SetAndReleaseItemExclusive method to convert the SessionStateItemCollection into a Base64 string to be stored in MongoDB.
|
|
WriteToEventLog ( |
This is a helper function that writes exception detail to the event log. Exceptions are written to the event log as a security measure to ensure private database details are not returned to browser. If a method does not return a status or Boolean indicating the action succeeded or failed, the caller also throws a generic exception.
|
public CreateNewStoreData ( System context, int timeout ) : System.Web.SessionState.SessionStateStoreData | ||
context | System | |
timeout | int | |
return | System.Web.SessionState.SessionStateStoreData |
public CreateUninitializedItem ( System context, string id, int timeout ) : void | ||
context | System | |
id | string | |
timeout | int | |
return | void |
public GetItem ( |
||
context | ||
id | string | |
locked | bool | |
lockAge | System.TimeSpan | |
lockId | object | |
actionFlags | SessionStateActions | |
return | System.Web.SessionState.SessionStateStoreData |
public GetItemExclusive ( |
||
context | ||
id | string | |
locked | bool | |
lockAge | System.TimeSpan | |
lockId | object | |
actionFlags | SessionStateActions | |
return | System.Web.SessionState.SessionStateStoreData |
public Initialize ( string name, System config ) : void | ||
name | string | |
config | System | |
return | void |
public InitializeRequest ( System context ) : void | ||
context | System | |
return | void |
public ReleaseItemExclusive ( System context, string id, object lockId ) : void | ||
context | System | |
id | string | |
lockId | object | |
return | void |
public RemoveItem ( System context, string id, object lockId, System.Web.SessionState.SessionStateStoreData item ) : void | ||
context | System | |
id | string | |
lockId | object | |
item | System.Web.SessionState.SessionStateStoreData | |
return | void |
public ResetItemTimeout ( System context, string id ) : void | ||
context | System | |
id | string | |
return | void |
public SetAndReleaseItemExclusive ( |
||
context | ||
id | string | |
item | System.Web.SessionState.SessionStateStoreData | |
lockId | object | |
newItem | bool | |
return | void |
public SetItemExpireCallback ( SessionStateItemExpireCallback expireCallback ) : bool | ||
expireCallback | SessionStateItemExpireCallback | |
return | bool |