MemoryGrainStorage.ClearStateAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ClearStateAsync(String, GrainReference, IGrainState) |
删除/清除此存储提供程序的状态数据函数。 |
ClearStateAsync<T>(String, GrainId, IGrainState<T>) |
删除/清除此存储实例的数据函数。 |
ClearStateAsync(String, GrainReference, IGrainState)
- Source:
- MemoryStorage.cs
删除/清除此存储提供程序的状态数据函数。
public virtual System.Threading.Tasks.Task ClearStateAsync (string grainType, Orleans.Runtime.GrainReference grainReference, Orleans.IGrainState grainState);
abstract member ClearStateAsync : string * Orleans.Runtime.GrainReference * Orleans.IGrainState -> System.Threading.Tasks.Task
override this.ClearStateAsync : string * Orleans.Runtime.GrainReference * Orleans.IGrainState -> System.Threading.Tasks.Task
Public Overridable Function ClearStateAsync (grainType As String, grainReference As GrainReference, grainState As IGrainState) As Task
参数
- grainType
- String
- grainReference
- GrainReference
- grainState
- IGrainState
返回
实现
适用于
ClearStateAsync<T>(String, GrainId, IGrainState<T>)
- Source:
- MemoryStorage.cs
- Source:
- MemoryStorage.cs
- Source:
- MemoryStorage.cs
- Source:
- MemoryStorage.cs
删除/清除此存储实例的数据函数。
public virtual System.Threading.Tasks.Task ClearStateAsync<T> (string grainType, Orleans.Runtime.GrainId grainId, Orleans.IGrainState<T> grainState);
abstract member ClearStateAsync : string * Orleans.Runtime.GrainId * Orleans.IGrainState<'T> -> System.Threading.Tasks.Task
override this.ClearStateAsync : string * Orleans.Runtime.GrainId * Orleans.IGrainState<'T> -> System.Threading.Tasks.Task
Public Overridable Function ClearStateAsync(Of T) (grainType As String, grainId As GrainId, grainState As IGrainState(Of T)) As Task
类型参数
- T
粒度状态类型。
参数
- grainType
- String
- grainId
- GrainId
Grain ID
- grainState
- IGrainState<T>
此粒度的上一个已知状态数据对象的副本。
返回
对指定粒度执行删除操作的完成承诺。