Show / Hide Table of Contents

Interface IStorage<TState>

Namespace: Orleans.Core
Assembly: Orleans.Core.Abstractions.dll
Syntax
public interface IStorage<TState>

    where TState : new ()
Type Parameters
Name Description
TState

Properties

| Improve this Doc View Source

Etag

Declaration
string Etag { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

State

Declaration
TState State { get; set; }
Property Value
Type Description
TState

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
Task ClearStateAsync()
Returns
Type Description
Task
| 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
Task ReadStateAsync()
Returns
Type Description
Task
| 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
Task WriteStateAsync()
Returns
Type Description
Task

Extension Methods

ImmutableExt.AsImmutable<T>(T)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX