Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
IStorage.WriteStateAsync Method
Definition
- Namespace:
- Orleans.Core
- Assembly:
- Orleans.dll
- Assembly:
- Orleans.Core.Abstractions.dll
- Package:
- Microsoft.Orleans.Core v1.5.10
- Package:
- Microsoft.Orleans.Core.Abstractions v10.0.0
- Package:
- Microsoft.Orleans.Core.Abstractions v3.6.5
- Package:
- Microsoft.Orleans.Core.Abstractions v7.2.5
- Package:
- Microsoft.Orleans.Core.Abstractions v8.0.0
- Package:
- Microsoft.Orleans.Core.Abstractions v8.1.0
- Package:
- Microsoft.Orleans.Core.Abstractions v8.2.0
- Package:
- Microsoft.Orleans.Core.Abstractions v9.0.0
- Package:
- Microsoft.Orleans.Core.Abstractions v9.1.2
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| WriteStateAsync() |
Writes grain state to storage. |
| WriteStateAsync(CancellationToken) |
Writes grain state to storage. |
WriteStateAsync()
- Source:
- IStorage.cs
Writes grain state to storage.
public System.Threading.Tasks.Task WriteStateAsync();
abstract member WriteStateAsync : unit -> System.Threading.Tasks.Task
Public Function WriteStateAsync () As Task
Returns
A Task representing the operation.
Remarks
If the Etag does not match what is present in the backing store, then this operation will fail; Set Etag to null to indicate "always delete".
Applies to
WriteStateAsync(CancellationToken)
Writes grain state to storage.
public virtual System.Threading.Tasks.Task WriteStateAsync(System.Threading.CancellationToken cancellationToken);
abstract member WriteStateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.WriteStateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function WriteStateAsync (cancellationToken As CancellationToken) As Task
Parameters
- cancellationToken
- CancellationToken
Returns
A Task representing the operation.
Remarks
If the Etag does not match what is present in the backing store, then this operation will fail; Set Etag to null to indicate "always delete".
