IVersionManager.SetSelectorStrategy 方法

定义

重载

SetSelectorStrategy(VersionSelectorStrategy)

设置选择器策略。

SetSelectorStrategy(GrainInterfaceType, VersionSelectorStrategy)

为特定接口设置选择器策略。

SetSelectorStrategy(Int32, VersionSelectorStrategy)

为特定接口设置选择器策略

SetSelectorStrategy(VersionSelectorStrategy)

Source:
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)

Source:
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

接口的 ID

strategy
VersionSelectorStrategy

要设置的策略。 设置为 null 以还原为配置中提供的默认策略

返回

适用于