Skip to content

PlacementTarget Constructors

Describes a placement target, which is a grain as well as context regarding the request which is triggering grain placement.

PlacementTarget(GrainId, Dictionary<string, object>, GrainInterfaceType, ushort)

View source
public PlacementTarget(GrainId grainIdentity, Dictionary<string, object> requestContextData, GrainInterfaceType interfaceType, ushort interfaceVersion)
Initializes a new instance of the PlacementTarget struct.

Parameters

grainIdentityGrainId
The grain being targeted.
requestContextDataDictionary<string, object>
The RequestContext dictionary for the request which triggered placement.
interfaceTypeGrainInterfaceType
The interface being requested.
interfaceVersionushort
The interface version being requested.