Method | Description | |
---|---|---|
CreateNewStoreData ( |
Creates a new SessionStateStoreData object to be used for the current request.
|
|
CreateUninitializedItem ( |
Creates an initial session record in the DynamoDB table.
|
|
DeleteExpiredSessions ( IAmazonDynamoDB dbClient ) : void |
A utility method for cleaning up expired sessions that IIS failed to delete. The method performs a scan on the ASP.NET_SessionState table with a condition that the expiration date is in the past and calls delete on all the keys returned. Scans can be costly on performance so use this method sparingly like a nightly or weekly clean job.
|
|
DeleteExpiredSessions ( IAmazonDynamoDB dbClient, string tableName ) : void |
A utility method for cleaning up expired sessions that IIS failed to delete. The method performs a scan on the table with a condition that the expiration date is in the past and calls delete on all the keys returned. Scans can be costly on performance so use this method sparingly like a nightly or weekly clean job.
|
|
Dispose ( ) : void |
Empty implementation of the override.
|
|
DynamoDBSessionStateStore ( IAmazonDynamoDB ddbClient ) : System |
Constructor for testing.
|
|
DynamoDBSessionStateStore ( string name, |
Constructor for testing.
|
|
EndRequest ( |
Empty implementation of the override.
|
|
GetItem ( |
Returns read-only session-state data from the DynamoDB table.
|
|
GetItemExclusive ( |
Returns session-state data from the DynamoDB table.
|
|
Initialize ( string name, |
Initializes the provider by pulling the config info from the web.config and validate/create the DynamoDB table. If the table is being created this method will block until the table is active.
|
|
InitializeRequest ( |
Empty implementation of the override.
|
|
ReleaseItemExclusive ( |
Releases a lock on an item in the session data store.
|
|
RemoveItem ( |
Removes the session record for DynamoDB.
|
|
ResetItemTimeout ( |
Updates the expiration date and time of an item in the DynamoDB table.
|
|
SetAndReleaseItemExclusive ( |
Updates the session-item information in the session-state data store with values from the current request, and clears the lock on the data.
|
|
SetItemExpireCallback ( SessionStateItemExpireCallback expireCallback ) : bool |
Provider returns false for this method.
|
Method | Description | |
---|---|---|
CreateTable ( ) : |
||
DynamoDBSessionStateStore ( ) : System | ||
GetConfigSettings ( |
||
GetHashKey ( string sessionId ) : string |
Combine application and session id for hash key.
|
|
GetSessionStoreItem ( bool lockRecord, |
Get the session for DynamoDB and optionally lock the record.
|
|
SetupTable ( ) : void | ||
UserAgentRequestEventHandler ( object sender, |
||
ValidateTable ( ) : void |
Make sure existing table is valid to be used as a session store.
|
|
deleteItem ( string sessionId ) : void | ||
deserialize ( |
||
serialize ( System.Web.SessionState.SessionStateItemCollection items ) : string |
public CreateNewStoreData ( |
||
context | ||
timeout | int | |
return | System.Web.SessionState.SessionStateStoreData |
public CreateUninitializedItem ( |
||
context | ||
sessionId | string | |
timeout | int | |
return | void |
public static DeleteExpiredSessions ( IAmazonDynamoDB dbClient ) : void | ||
dbClient | IAmazonDynamoDB | The AmazonDynamoDB client used to find a delete expired sessions. |
return | void |
public static DeleteExpiredSessions ( IAmazonDynamoDB dbClient, string tableName ) : void | ||
dbClient | IAmazonDynamoDB | The AmazonDynamoDB client used to find a delete expired sessions. |
tableName | string | The table to search. |
return | void |
public DynamoDBSessionStateStore ( IAmazonDynamoDB ddbClient ) : System | ||
ddbClient | IAmazonDynamoDB | |
return | System |
public DynamoDBSessionStateStore ( string name, |
||
name | string | |
config | ||
return | System |
public EndRequest ( |
||
context | ||
return | void |
public GetItem ( |
||
context | ||
sessionId | string | |
locked | bool | |
lockAge | System.TimeSpan | |
lockId | object | |
actionFlags | SessionStateActions | |
return | System.Web.SessionState.SessionStateStoreData |
public GetItemExclusive ( |
||
context | ||
sessionId | string | |
locked | bool | |
lockAge | System.TimeSpan | |
lockId | object | |
actionFlags | SessionStateActions | |
return | System.Web.SessionState.SessionStateStoreData |
public Initialize ( string name, |
||
name | string | |
config | ||
return | void |
public InitializeRequest ( |
||
context | ||
return | void |
public ReleaseItemExclusive ( |
||
context | The HttpContext for the current request. | |
sessionId | string | The session identifier for the current request. |
lockId | object | The lock identifier for the current request. |
return | void |
public RemoveItem ( |
||
context | ||
sessionId | string | |
lockId | object | |
item | System.Web.SessionState.SessionStateStoreData | |
return | void |
public ResetItemTimeout ( |
||
context | ||
sessionId | string | |
return | void |
public SetAndReleaseItemExclusive ( |
||
context | The HttpContext for the current request. | |
sessionId | string | The session identifier for the current request. |
item | System.Web.SessionState.SessionStateStoreData | The SessionStateStoreData object that contains the current session values to be stored. |
lockId | object | The lock identifier for the current request. |
newItem | bool | true to identify the session item as a new item; false to identify the session item as an existing item. |
return | void |
public SetItemExpireCallback ( SessionStateItemExpireCallback expireCallback ) : bool | ||
expireCallback | SessionStateItemExpireCallback | |
return | bool |