IVersionManager.SetSelectorStrategy 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
SetSelectorStrategy(VersionSelectorStrategy) |
設定選取器策略。 |
SetSelectorStrategy(GrainInterfaceType, VersionSelectorStrategy) |
設定特定介面的選取器策略。 |
SetSelectorStrategy(Int32, VersionSelectorStrategy) |
設定特定介面的選取器策略 |
SetSelectorStrategy(VersionSelectorStrategy)
設定選取器策略。
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)
設定特定介面的選取器策略
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 以還原為組態中提供的預設策略