IPartitionKeyProvider.GetPartitionKey(String, GrainId) Method
Definition
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.
Creates a partition key for the provided grain.
public System.Threading.Tasks.ValueTask<string> GetPartitionKey(string grainType, Orleans.Runtime.GrainId grainId);
abstract member GetPartitionKey : string * Orleans.Runtime.GrainId -> System.Threading.Tasks.ValueTask<string>
Public Function GetPartitionKey (grainType As String, grainId As GrainId) As ValueTask(Of String)
Parameters
- grainType
- String
The grain type.
- grainId
- GrainId
The grain identifier.
Returns
The partition key.