Метод | Описание | |
---|---|---|
IsPresent ( |
Determines if the device making the request has been seen by the web site previously.
|
|
Remove ( |
Removes the device behind the request.
|
|
Set ( |
Sets the last active time for the device making the request.
|
Метод | Описание | |
---|---|---|
CheckIfServiceRequired ( ) : void |
If the last time the devices file was serviced to remove old entries is older than 1 minute start a thread to service the devices file and remove old entries. If the redirect timeout is 0 indicating infinite then nothing should be purged.
|
|
GetEntityFromContext ( |
Returns the entity if present from the current context.
|
|
GetEntityFromTable ( |
Returns the entity if present from the table service. Should only be called after checking the entity is not already present in the context.
|
|
Remove ( |
Removes the request device details from the table, and then removes from memory once the table has been updated.
|
|
RequestHistory ( ) : System | ||
ServiceRequestHistory ( object value ) : void |
Removes old entries that are held within this context from the table store using a single save changes operation. This means the service happens using one HTTP request which saves a lot of money with Azure. Unfortunately it does mean that there is a possibility request data not known to this instance will not be removed.
|
|
Set ( |
Adds the record to the table storage service, or if it already exists updates the last active date and time.
|
public IsPresent ( |
||
request | The request from the device. | |
Результат | bool |
public Remove ( |
||
request | The request from the device. | |
Результат | void |
public Set ( |
||
request | The request from the device. | |
Результат | void |