Skip to content

IStreamIdMapper Methods

Common interface for components that map a StreamId to a GrainId

GetGrainKeyId(GrainBindings, StreamId)

abstract
public abstract IdSpan GetGrainKeyId(GrainBindings grainBindings, StreamId streamId)
Gets the GrainId which maps to the provided StreamId

Parameters

grainBindingsGrainBindings
The grain bindings.
streamIdStreamId
The stream identifier.

Returns

The GrainId component.