IPlacementDirector.OnAddActivation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.