共用方式為


IPlacementDirector.OnAddActivation 方法

定義

挑選適當的定址接收器,以放置指定的目標。

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)

參數

strategy
PlacementStrategy

目標的放置策略。

target
PlacementTarget

所放置的粒紋,以及觸發放置之要求的相關資訊。

context
IPlacementContext

放置內容。

傳回

要放置指定目標的適當定址接收器。

適用於