共用方式為


IVersionManager.SetSelectorStrategy 方法

定義

多載

SetSelectorStrategy(VersionSelectorStrategy)

設定選取器策略。

SetSelectorStrategy(GrainInterfaceType, VersionSelectorStrategy)

設定特定介面的選取器策略。

SetSelectorStrategy(Int32, VersionSelectorStrategy)

設定特定介面的選取器策略

SetSelectorStrategy(VersionSelectorStrategy)

來源:
IVersionManager.cs

設定選取器策略。

public System.Threading.Tasks.Task SetSelectorStrategy (Orleans.Versions.Selector.VersionSelectorStrategy strategy);
abstract member SetSelectorStrategy : Orleans.Versions.Selector.VersionSelectorStrategy -> System.Threading.Tasks.Task
Public Function SetSelectorStrategy (strategy As VersionSelectorStrategy) As Task

參數

strategy
VersionSelectorStrategy

要設定的策略。 設定為 , null 以還原為組態中提供的預設策略。

傳回

Task 表示作業。

適用於

SetSelectorStrategy(GrainInterfaceType, VersionSelectorStrategy)

設定特定介面的選取器策略。

public System.Threading.Tasks.Task SetSelectorStrategy (Orleans.Runtime.GrainInterfaceType interfaceType, Orleans.Versions.Selector.VersionSelectorStrategy strategy);
abstract member SetSelectorStrategy : Orleans.Runtime.GrainInterfaceType * Orleans.Versions.Selector.VersionSelectorStrategy -> System.Threading.Tasks.Task
Public Function SetSelectorStrategy (interfaceType As GrainInterfaceType, strategy As VersionSelectorStrategy) As Task

參數

interfaceType
GrainInterfaceType

介面的型別。

strategy
VersionSelectorStrategy

要設定的策略。 設定為 , null 以還原為組態中提供的預設策略。

傳回

Task 表示作業。

適用於

SetSelectorStrategy(Int32, VersionSelectorStrategy)

來源:
IVersionManager.cs

設定特定介面的選取器策略

public System.Threading.Tasks.Task SetSelectorStrategy (int interfaceId, Orleans.Versions.Selector.VersionSelectorStrategy strategy);
abstract member SetSelectorStrategy : int * Orleans.Versions.Selector.VersionSelectorStrategy -> System.Threading.Tasks.Task
Public Function SetSelectorStrategy (interfaceId As Integer, strategy As VersionSelectorStrategy) As Task

參數

interfaceId
Int32

介面的識別碼

strategy
VersionSelectorStrategy

要設定的策略。 設定為 null 以還原為組態中提供的預設策略

傳回

適用於