Skip to content

DefaultDocumentIdProvider.GetPartitionKey(string, GrainId)

GetPartitionKey(string, GrainId)

View source
public string GetPartitionKey(string grainType, GrainId grainId)
Gets the Cosmos DB partition key for the specified grain document.

Parameters

grainTypestring
The grain type.
grainIdGrainId
The grain id.

Returns

The document partition key.