ShardedStorageProvider.HashFunction(String, GrainReference) 方法

定义

返回派生自输入粒度类型和 ID 值的哈希值。

protected virtual int HashFunction (string grainType, Orleans.Runtime.GrainReference grainReference);
abstract member HashFunction : string * Orleans.Runtime.GrainReference -> int
override this.HashFunction : string * Orleans.Runtime.GrainReference -> int
Protected Overridable Function HashFunction (grainType As String, grainReference As GrainReference) As Integer

参数

grainType
String

此粒度的完全限定类类型名称

grainReference
GrainReference

此粒度的 GrainI 参考

返回

此粒度的稳定哈希值

适用于