Skip to content

DefaultChannelIdMapper.GetGrainKeyId(GrainBindings, ChannelId)

GetGrainKeyId(GrainBindings, ChannelId)

View source
public IdSpan GetGrainKeyId(GrainBindings grainBindings, ChannelId streamId)
Get the GrainId which maps to the provided ChannelId

Parameters

grainBindingsGrainBindings
The grain bindings.
streamIdChannelId
The stream identifier.

Returns

The GrainId component.