Прочетете на английски Редактиране

Споделяне чрез


IStorage.ClearStateAsync Method

Definition

Overloads

ClearStateAsync()

Clears the grain state.

ClearStateAsync(CancellationToken)

Clears the grain state.

ClearStateAsync()

Source:
IStorage.cs

Clears the grain state.

C#
public System.Threading.Tasks.Task ClearStateAsync();

Returns

A Task representing the operation.

Remarks

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 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

.NET Orleans 9.0.0 и други версии
Продукт Версии
.NET Orleans 1.5.10, 3.6.0, 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0

ClearStateAsync(CancellationToken)

Clears the grain state.

C#
public virtual System.Threading.Tasks.Task ClearStateAsync(System.Threading.CancellationToken cancellationToken);

Parameters

cancellationToken
CancellationToken

Returns

A Task representing the operation.

Remarks

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 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