C# 클래스 Couchbase.AspNet.SessionState.SessionStateItem

Internal class for handling the storage of the session items in Couchbase
파일 보기 프로젝트 열기: couchbaselabs/couchbase-aspnet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Data System.Web.SessionState.SessionStateItemCollection
DataCas ulong
Flag SessionStateActions
HeadCas ulong
LockId ulong
LockTime System.DateTime
Timeout int

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Load() 공개 정적인 메소드

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
리턴 SessionStateItem

Load() 공개 정적인 메소드

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
리턴 SessionStateItem

Remove() 공개 정적인 메소드

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
리턴 void

SaveAll() 공개 메소드

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.
리턴 bool

SaveData() 공개 메소드

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.
리턴 bool

SaveHeader() 공개 메소드

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
리턴 bool

ToStoreData() 공개 메소드

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

프로퍼티 상세

Data 공개적으로 프로퍼티

public SessionStateItemCollection,System.Web.SessionState Data
리턴 System.Web.SessionState.SessionStateItemCollection

DataCas 공개적으로 프로퍼티

public ulong DataCas
리턴 ulong

Flag 공개적으로 프로퍼티

public SessionStateActions Flag
리턴 SessionStateActions

HeadCas 공개적으로 프로퍼티

public ulong HeadCas
리턴 ulong

LockId 공개적으로 프로퍼티

public ulong LockId
리턴 ulong

LockTime 공개적으로 프로퍼티

public DateTime,System LockTime
리턴 System.DateTime

Timeout 공개적으로 프로퍼티

public int Timeout
리턴 int