Redigera

Dela via


IPlacementDirector.OnAddActivation Method

Definition

Picks an appropriate silo to place the specified target on.

public System.Threading.Tasks.Task<Orleans.Runtime.SiloAddress> OnAddActivation (Orleans.Runtime.PlacementStrategy strategy, Orleans.Runtime.Placement.PlacementTarget target, Orleans.Runtime.Placement.IPlacementContext context);
abstract member OnAddActivation : Orleans.Runtime.PlacementStrategy * Orleans.Runtime.Placement.PlacementTarget * Orleans.Runtime.Placement.IPlacementContext -> System.Threading.Tasks.Task<Orleans.Runtime.SiloAddress>
Public Function OnAddActivation (strategy As PlacementStrategy, target As PlacementTarget, context As IPlacementContext) As Task(Of SiloAddress)

Parameters

strategy
PlacementStrategy

The target's placement strategy.

target
PlacementTarget

The grain being placed as well as information about the request which triggered the placement.

context
IPlacementContext

The placement context.

Returns

An appropriate silo to place the specified target on.

Applies to