IVersionManager.SetCompatibilityStrategy 方法

定义

重载

SetCompatibilityStrategy(CompatibilityStrategy)

设置兼容性策略。

SetCompatibilityStrategy(GrainInterfaceType, CompatibilityStrategy)

设置特定接口的兼容性策略。

SetCompatibilityStrategy(Int32, CompatibilityStrategy)

设置特定接口的兼容性策略

SetCompatibilityStrategy(CompatibilityStrategy)

Source:
IVersionManager.cs

设置兼容性策略。

public System.Threading.Tasks.Task SetCompatibilityStrategy (Orleans.Versions.Compatibility.CompatibilityStrategy strategy);
abstract member SetCompatibilityStrategy : Orleans.Versions.Compatibility.CompatibilityStrategy -> System.Threading.Tasks.Task
Public Function SetCompatibilityStrategy (strategy As CompatibilityStrategy) As Task

参数

strategy
CompatibilityStrategy

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

返回

一个 Task 表示操作的 。

适用于

SetCompatibilityStrategy(GrainInterfaceType, CompatibilityStrategy)

设置特定接口的兼容性策略。

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

参数

interfaceType
GrainInterfaceType

接口的类型。

strategy
CompatibilityStrategy

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

返回

一个 Task 表示操作的 。

适用于

SetCompatibilityStrategy(Int32, CompatibilityStrategy)

Source:
IVersionManager.cs

设置特定接口的兼容性策略

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

参数

interfaceId
Int32

接口的 ID

strategy
CompatibilityStrategy

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

返回

适用于