Interface IStorage<TState>
Assembly: Orleans.Core.Abstractions.dll
Syntax
public interface IStorage<TState>
where TState : new ()
Type Parameters
Properties
|
Improve this Doc
View Source
Etag
Declaration
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
State
Declaration
TState State { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
ClearStateAsync()
Async method to cause the current grain state data to be cleared and reset.
This will usually mean the state record is deleted from backing store, but the specific behavior is defined by the storage provider instance configured for this grain.
If Etags do not match, then this operation will fail; Set Etag = null
to indicate "always delete".
Declaration
Returns
|
Improve this Doc
View Source
ReadStateAsync()
Async method to cause refresh of the current grain state data from backing store.
Any previous contents of the grain state data will be overwritten.
Declaration
Returns
|
Improve this Doc
View Source
WriteStateAsync()
Async method to cause write of the current grain state data into backing store.
If Etags do not match, then this operation will fail; Set Etag = null
to indicate "always overwrite".
Declaration
Returns
Extension Methods