Skip to content

IStorage Methods

Provides method for operating on grain storage.

ClearStateAsync

abstract
View source
public abstract Task ClearStateAsync()
Clears the grain state.

Returns

A System.Threading.Tasks.Task representing the operation.

ClearStateAsync(CancellationToken)

virtual
View source
public virtual Task ClearStateAsync(CancellationToken cancellationToken)
Clears the grain state.

Parameters

cancellationTokenCancellationToken

Returns

A System.Threading.Tasks.Task representing the operation.

ReadStateAsync

abstract
View source
public abstract Task ReadStateAsync()
Reads grain state from storage.

Returns

A System.Threading.Tasks.Task representing the operation.

ReadStateAsync(CancellationToken)

virtual
View source
public virtual Task ReadStateAsync(CancellationToken cancellationToken)
Reads grain state from storage.

Parameters

cancellationTokenCancellationToken

Returns

A System.Threading.Tasks.Task representing the operation.

WriteStateAsync

abstract
View source
public abstract Task WriteStateAsync()
Writes grain state to storage.

Returns

A System.Threading.Tasks.Task representing the operation.

WriteStateAsync(CancellationToken)

virtual
View source
public virtual Task WriteStateAsync(CancellationToken cancellationToken)
Writes grain state to storage.

Parameters

cancellationTokenCancellationToken

Returns

A System.Threading.Tasks.Task representing the operation.