프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Deserialize | System.Web.SessionState.SessionStateStoreData | ||
GetSessionStaticObjects | System.Web.HttpStaticObjectsCollection | ||
GetSessionStoreItem | System.Web.SessionState.SessionStateStoreData | ||
Initialize | void | ||
Serialize | string |
메소드 | 설명 | |
---|---|---|
CreateNewStoreData ( |
returns a new SessionStateStoreData object with an empty ISessionStateItemCollection object, an HttpStaticObjectsCollection collection, and the specified Timeout value.
|
|
CreateUninitializedItem ( |
Adds an uninitialized item to the session data store.
|
|
Dispose ( ) : void | ||
EndRequest ( |
Performs any cleanup required by your session-state store provider.
|
|
GetItem ( |
This method performs the same work as the GetItemExclusive method, except that it does not attempt to lock the session item in the data store.
|
|
GetItemExclusive ( |
Retrieves session values and information from the session data store and locks the session-item data at the data store for the duration of the request.
|
|
Initialize ( string name, System config ) : void | ||
InitializeRequest ( |
Performs any initialization required by your session-state store provider.
|
|
RavenSessionStateStoreProvider ( ) : System |
Public parameterless constructor
|
|
RavenSessionStateStoreProvider ( IDocumentStore documentStore ) : System |
Constructor accepting a document store instance, used for testing.
|
|
ReleaseItemExclusive ( |
Releases the lock on an item in the session data store.
|
|
RemoveItem ( |
deletes the session information from the data store where the data store item matches the supplied SessionID value, the current application, and the supplied lock identifier.
|
|
ResetItemTimeout ( |
Resets the expiry timeout for a session item.
|
|
SetAndReleaseItemExclusive ( |
If the newItem parameter is true, the SetAndReleaseItemExclusive method inserts a new item into the data store with the supplied values. Otherwise, the existing item in the data store is updated with the supplied values, and any lock on the data is released.
|
|
SetItemExpireCallback ( SessionStateItemExpireCallback expireCallback ) : bool |
Takes as input a delegate that references the Session_OnEnd event defined in the Global.asax file. If the session-state store provider supports the Session_OnEnd event, a local reference to the SessionStateItemExpireCallback parameter is set and the method returns true; otherwise, the method returns false.
|
메소드 | 설명 | |
---|---|---|
Deserialize ( |
||
GetSessionStaticObjects ( |
||
GetSessionStoreItem ( bool lockRecord, |
||
Initialize ( string name, System config, IDocumentStore documentStore ) : void | ||
Serialize ( System.Web.SessionState.SessionStateItemCollection items ) : string |
public CreateNewStoreData ( |
||
context | The HttpContext instance for the current request | |
timeout | int | The expiry timeout in minutes. |
리턴 | System.Web.SessionState.SessionStateStoreData |
public CreateUninitializedItem ( |
||
context | The HttpContext instance for the current request | |
sessionId | string | The session identifier. |
timeout | int | The expiry timeout in minutes. |
리턴 | void |
public EndRequest ( |
||
context | The HttpContext instance for the current request | |
리턴 | void |
public GetItem ( |
||
context | The HttpContext instance for the current request | |
sessionId | string | The session identifier. |
locked | bool | An output parameter indicating whether the item is currently exclusively locked. |
lockAge | System.TimeSpan | The age of the exclusive lock (if present) |
lockId | object | The identifier of the exclusive lock (if present) |
actions | SessionStateActions | Used with sessions whose Cookieless property is true, /// when the regenerateExpiredSessionId attribute is set to true. /// An actionFlags value set to InitializeItem (1) indicates that the entry in the session data store is a /// new session that requires initialization. |
리턴 | System.Web.SessionState.SessionStateStoreData |
public GetItemExclusive ( |
||
context | The HttpContext instance for the current request | |
sessionId | string | The session identifier. |
locked | bool | An output parameter indicating whether the item is currently exclusively locked. |
lockAge | System.TimeSpan | The age of the exclusive lock (if present) |
lockId | object | The identifier of the exclusive lock (if present) |
actions | SessionStateActions | Used with sessions whose Cookieless property is true, /// when the regenerateExpiredSessionId attribute is set to true. /// An actionFlags value set to InitializeItem (1) indicates that the entry in the session data store is a /// new session that requires initialization. |
리턴 | System.Web.SessionState.SessionStateStoreData |
public Initialize ( string name, System config ) : void | ||
name | string | |
config | System | |
리턴 | void |
public InitializeRequest ( |
||
context | The HttpContext instance for the current request | |
리턴 | void |
public RavenSessionStateStoreProvider ( ) : System | ||
리턴 | System |
public RavenSessionStateStoreProvider ( IDocumentStore documentStore ) : System | ||
documentStore | IDocumentStore | |
리턴 | System |
public ReleaseItemExclusive ( |
||
context | The HttpContext instance for the current request | |
sessionId | string | The session identifier. |
lockId | object | The lock identifier for the current request. |
리턴 | void |
public RemoveItem ( |
||
context | The HttpContext instance for the current request | |
sessionId | string | The session identifier. |
lockId | object | The exclusive-lock identifier. |
item | System.Web.SessionState.SessionStateStoreData | |
리턴 | void |
public ResetItemTimeout ( |
||
context | The HttpContext instance for the current request | |
sessionId | string | The session identifier. |
리턴 | void |
public SetAndReleaseItemExclusive ( |
||
context | The HttpContext instance for the current request | |
sessionId | string | The session identifier. |
item | System.Web.SessionState.SessionStateStoreData | The current session values to be stored |
lockId | object | The lock identifier for the current request. |
newItem | bool | If true, a new item is inserted into the store. Otherwise, the existing item in /// the data store is updated with the supplied values, and any lock on the data is released. |
리턴 | void |
public SetItemExpireCallback ( SessionStateItemExpireCallback expireCallback ) : bool | ||
expireCallback | SessionStateItemExpireCallback | A callback. |
리턴 | bool |