共用方式為


IVersionManager.SetCompatibilityStrategy 方法

定義

多載

SetCompatibilityStrategy(CompatibilityStrategy)

設定相容性策略。

SetCompatibilityStrategy(GrainInterfaceType, CompatibilityStrategy)

設定特定介面的相容性策略。

SetCompatibilityStrategy(Int32, CompatibilityStrategy)

設定特定介面的相容性策略

SetCompatibilityStrategy(CompatibilityStrategy)

來源:
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)

來源:
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

介面的識別碼

strategy
CompatibilityStrategy

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

傳回

適用於