![]() |
Apache Ignite.NET
|
ASP.NET Session-State Store Provider that uses Ignite distributed cache as an underlying storage. More...
Public Member Functions | |
| override void | Initialize (string name, NameValueCollection config) |
| Initializes the provider. More... | |
| override void | Dispose () |
| Releases all resources used by the T:System.Web.SessionState.SessionStateStoreProviderBase implementation. More... | |
| override bool | SetItemExpireCallback (SessionStateItemExpireCallback expireCallback) |
| Sets a reference to the T:System.Web.SessionState.SessionStateItemExpireCallback delegate for the Session_OnEnd event defined in the Global.asax file. More... | |
| override void | InitializeRequest (HttpContext context) |
| Called by the T:System.Web.SessionState.SessionStateModule object for per-request initialization. More... | |
| override SessionStateStoreData | GetItem (HttpContext context, string id, out bool locked, out TimeSpan lockAge, out object lockId, out SessionStateActions actions) |
| Returns read-only session-state data from the session data store. More... | |
| override SessionStateStoreData | GetItemExclusive (HttpContext context, string id, out bool locked, out TimeSpan lockAge, out object lockId, out SessionStateActions actions) |
| Returns read-only session-state data from the session data store. More... | |
| override void | ReleaseItemExclusive (HttpContext context, string id, object lockId) |
| Releases a lock on an item in the session data store. More... | |
| override void | SetAndReleaseItemExclusive (HttpContext context, string id, SessionStateStoreData item, object lockId, bool newItem) |
| Updates the session-item information in the session-state data store with values from the current request, and clears the lock on the data. More... | |
| override void | RemoveItem (HttpContext context, string id, object lockId, SessionStateStoreData item) |
| Deletes item data from the session data store. More... | |
| override void | ResetItemTimeout (HttpContext context, string id) |
| Updates the expiration date and time of an item in the session data store. More... | |
| override SessionStateStoreData | CreateNewStoreData (HttpContext context, int timeout) |
| Creates a new T:System.Web.SessionState.SessionStateStoreData object to be used for the current request. More... | |
| override void | CreateUninitializedItem (HttpContext context, string id, int timeout) |
| Adds a new session-state item to the data store. More... | |
| override void | EndRequest (HttpContext context) |
| Called by the T:System.Web.SessionState.SessionStateModule object at the end of a request. More... | |
Public Attributes | |
| const string | DefaultCacheName = "ASPNET_SESSION_STATE" |
The default cache name to be used when cacheName attribute is not specified. More... | |
You can either start Ignite yourself, and provide gridName attribute, or provide igniteConfigurationSectionName attribute to start Ignite automatically from specified configuration section (see IgniteConfigurationSection) using igniteConfigurationSectionName.
cacheName attribute specifies Ignite cache name to use for data storage. This attribute can be omitted if cache name is null.
Optional applicationId attribute allows sharing a single Ignite cache between multiple web applications.
| override SessionStateStoreData Apache.Ignite.AspNet.IgniteSessionStateStoreProvider.CreateNewStoreData | ( | HttpContext | context, |
| int | timeout | ||
| ) |
| context | The T:System.Web.HttpContext for the current request. |
| timeout | The session-state P:System.Web.SessionState.HttpSessionState.Timeout value for the new T:System.Web.SessionState.SessionStateStoreData, in minutes. |
| override void Apache.Ignite.AspNet.IgniteSessionStateStoreProvider.CreateUninitializedItem | ( | HttpContext | context, |
| string | id, | ||
| int | timeout | ||
| ) |
| context | The T:System.Web.HttpContext for the current request. |
| id | The P:System.Web.SessionState.HttpSessionState.SessionID for the current request. |
| timeout | The session P:System.Web.SessionState.HttpSessionState.Timeout for the current request, in minutes. |
| override void Apache.Ignite.AspNet.IgniteSessionStateStoreProvider.Dispose | ( | ) |
| override void Apache.Ignite.AspNet.IgniteSessionStateStoreProvider.EndRequest | ( | HttpContext | context | ) |
| context | The T:System.Web.HttpContext for the current request. |
| override SessionStateStoreData Apache.Ignite.AspNet.IgniteSessionStateStoreProvider.GetItem | ( | HttpContext | context, |
| string | id, | ||
| out bool | locked, | ||
| out TimeSpan | lockAge, | ||
| out object | lockId, | ||
| out SessionStateActions | actions | ||
| ) |
| context | The T:System.Web.HttpContext for the current request. |
| id | The P:System.Web.SessionState.HttpSessionState.SessionID for the current request. |
| locked | When this method returns, contains a Boolean value that is set to true if the requested session item is locked at the session data store; otherwise, false. |
| lockAge | When this method returns, contains a T:System.TimeSpan object that is set to the amount of time that an item in the session data store has been locked. |
| lockId | When this method returns, contains an object that is set to the lock identifier for the current request. For details on the lock identifier, see "Locking Session-Store Data" in the T:System.Web.SessionState.SessionStateStoreProviderBase class summary. |
| actions | When this method returns, contains one of the T:System.Web.SessionState.SessionStateActions values, indicating whether the current session is an uninitialized, cookieless session. |
| override SessionStateStoreData Apache.Ignite.AspNet.IgniteSessionStateStoreProvider.GetItemExclusive | ( | HttpContext | context, |
| string | id, | ||
| out bool | locked, | ||
| out TimeSpan | lockAge, | ||
| out object | lockId, | ||
| out SessionStateActions | actions | ||
| ) |
| context | The T:System.Web.HttpContext for the current request. |
| id | The P:System.Web.SessionState.HttpSessionState.SessionID for the current request. |
| locked | When this method returns, contains a Boolean value that is set to true if a lock is successfully obtained; otherwise, false. |
| lockAge | When this method returns, contains a T:System.TimeSpan object that is set to the amount of time that an item in the session data store has been locked. |
| lockId | When this method returns, contains an object that is set to the lock identifier for the current request. For details on the lock identifier, see "Locking Session-Store Data" in the T:System.Web.SessionState.SessionStateStoreProviderBase class summary. |
| actions | When this method returns, contains one of the T:System.Web.SessionState.SessionStateActions values, indicating whether the current session is an uninitialized, cookieless session. |
| override void Apache.Ignite.AspNet.IgniteSessionStateStoreProvider.Initialize | ( | string | name, |
| NameValueCollection | config | ||
| ) |
| name | The friendly name of the provider. |
| config | A collection of the name/value pairs representing the provider-specific attributes specified in the configuration for this provider. |
| override void Apache.Ignite.AspNet.IgniteSessionStateStoreProvider.InitializeRequest | ( | HttpContext | context | ) |
| context | The T:System.Web.HttpContext for the current request. |
| override void Apache.Ignite.AspNet.IgniteSessionStateStoreProvider.ReleaseItemExclusive | ( | HttpContext | context, |
| string | id, | ||
| object | lockId | ||
| ) |
| context | The T:System.Web.HttpContext for the current request. |
| id | The session identifier for the current request. |
| lockId | The lock identifier for the current request. |
| override void Apache.Ignite.AspNet.IgniteSessionStateStoreProvider.RemoveItem | ( | HttpContext | context, |
| string | id, | ||
| object | lockId, | ||
| SessionStateStoreData | item | ||
| ) |
| context | The T:System.Web.HttpContext for the current request. |
| id | The session identifier for the current request. |
| lockId | The lock identifier for the current request. |
| item | The T:System.Web.SessionState.SessionStateStoreData that represents the item to delete from the data store. |
| override void Apache.Ignite.AspNet.IgniteSessionStateStoreProvider.ResetItemTimeout | ( | HttpContext | context, |
| string | id | ||
| ) |
| context | The T:System.Web.HttpContext for the current request. |
| id | The session identifier for the current request. |
| override void Apache.Ignite.AspNet.IgniteSessionStateStoreProvider.SetAndReleaseItemExclusive | ( | HttpContext | context, |
| string | id, | ||
| SessionStateStoreData | item, | ||
| object | lockId, | ||
| bool | newItem | ||
| ) |
| context | The T:System.Web.HttpContext for the current request. |
| id | The session identifier for the current request. |
| item | The T:System.Web.SessionState.SessionStateStoreData object that contains the current session values to be stored. |
| lockId | The lock identifier for the current request. |
| newItem | true to identify the session item as a new item; false to identify the session item as an existing item. |
| override bool Apache.Ignite.AspNet.IgniteSessionStateStoreProvider.SetItemExpireCallback | ( | SessionStateItemExpireCallback | expireCallback | ) |
| expireCallback | The T:System.Web.SessionState.SessionStateItemExpireCallback delegate for the Session_OnEnd event defined in the Global.asax file. |
| const string Apache.Ignite.AspNet.IgniteSessionStateStoreProvider.DefaultCacheName = "ASPNET_SESSION_STATE" |