C# Class Couchbase.AspNet.SessionState.SessionStateItem

Internal class for handling the storage of the session items in Couchbase
Afficher le fichier Open project: couchbaselabs/couchbase-aspnet Class Usage Examples

Méthodes publiques

Свойство Type Description
Data System.Web.SessionState.SessionStateItemCollection
DataCas ulong
Flag SessionStateActions
HeadCas ulong
LockId ulong
LockTime System.DateTime
Timeout int

Méthodes publiques

Méthode Description
Load ( IBucket bucket, string id, bool metaOnly ) : SessionStateItem

Loads a session state item from the bucket

Load ( string headerPrefix, string dataPrefix, IBucket bucket, string id, bool metaOnly ) : SessionStateItem

Loads a session state item from the bucket. This function is publicly accessible so that you have direct access to session data from another application if necesssary. We use this so our front end code can determine if an employee is logged into our back end application to give them special permissions, without the session data being actually common between the two applications.

Remove ( IBucket bucket, string id ) : void

Removes a session store item from the bucket

SaveAll ( IBucket bucket, string id, bool useCas, bool &keyNotFound ) : bool

Saves the session store into Couchbase

SaveData ( IBucket bucket, string id, bool useCas, ResponseStatus &status ) : bool

Saves the session store data into Couchbase

SaveHeader ( IBucket bucket, string id, bool useCas, ResponseStatus &status ) : bool

Saves the session store header into Couchbase

ToStoreData ( HttpContext context ) : System.Web.SessionState.SessionStateStoreData

Creates a session store data object from the session data

Private Methods

Méthode Description
LoadHeader ( Stream s ) : SessionStateItem

Loads a sessions store header data from the passed in stream

WriteHeader ( Stream s ) : void

Writes the header to the stream

Method Details

Load() public static méthode

Loads a session state item from the bucket
public static Load ( IBucket bucket, string id, bool metaOnly ) : SessionStateItem
bucket IBucket Couchbase bucket to load from
id string Session ID
metaOnly bool True to load only meta data
Résultat SessionStateItem

Load() public static méthode

Loads a session state item from the bucket. This function is publicly accessible so that you have direct access to session data from another application if necesssary. We use this so our front end code can determine if an employee is logged into our back end application to give them special permissions, without the session data being actually common between the two applications.
public static Load ( string headerPrefix, string dataPrefix, IBucket bucket, string id, bool metaOnly ) : SessionStateItem
headerPrefix string Prefix for the header data
dataPrefix string Prefix for the real data
bucket IBucket Couchbase bucket to load from
id string Session ID
metaOnly bool True to load only meta data
Résultat SessionStateItem

Remove() public static méthode

Removes a session store item from the bucket
public static Remove ( IBucket bucket, string id ) : void
bucket IBucket Bucket to remove from
id string Session ID
Résultat void

SaveAll() public méthode

Saves the session store into Couchbase
public SaveAll ( IBucket bucket, string id, bool useCas, bool &keyNotFound ) : bool
bucket IBucket Couchbase bucket to save to
id string Session ID
useCas bool True to use a check and set, false to simply store it
keyNotFound bool True if is returned for the body or the header.
Résultat bool

SaveData() public méthode

Saves the session store data into Couchbase
public SaveData ( IBucket bucket, string id, bool useCas, ResponseStatus &status ) : bool
bucket IBucket Couchbase bucket to save to
id string Session ID
useCas bool True to use a check and set, false to simply store it
status ResponseStatus The from the server.
Résultat bool

SaveHeader() public méthode

Saves the session store header into Couchbase
public SaveHeader ( IBucket bucket, string id, bool useCas, ResponseStatus &status ) : bool
bucket IBucket Couchbase bucket to save to
id string Session ID
useCas bool True to use a check and set, false to simply store it
status ResponseStatus
Résultat bool

ToStoreData() public méthode

Creates a session store data object from the session data
public ToStoreData ( HttpContext context ) : System.Web.SessionState.SessionStateStoreData
context System.Web.HttpContext HttpContext to use
Résultat System.Web.SessionState.SessionStateStoreData

Property Details

Data public_oe property

public SessionStateItemCollection,System.Web.SessionState Data
Résultat System.Web.SessionState.SessionStateItemCollection

DataCas public_oe property

public ulong DataCas
Résultat ulong

Flag public_oe property

public SessionStateActions Flag
Résultat SessionStateActions

HeadCas public_oe property

public ulong HeadCas
Résultat ulong

LockId public_oe property

public ulong LockId
Résultat ulong

LockTime public_oe property

public DateTime,System LockTime
Résultat System.DateTime

Timeout public_oe property

public int Timeout
Résultat int