Redigera

Dela via


ShardedStorageProvider.HashFunction(String, GrainReference) Method

Definition

Return a hash value derived from the input grain type and id values.

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

Parameters

grainType
String

Fully qualified class type name for this grain

grainReference
GrainReference

GrainI reference for this grain

Returns

Stable hash value for this grain

Applies to