IVersionManager.SetCompatibilityStrategy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetCompatibilityStrategy(CompatibilityStrategy) |
Set the compatibility strategy. |
SetCompatibilityStrategy(GrainInterfaceType, CompatibilityStrategy) |
Set the compatibility strategy for a specific interface. |
SetCompatibilityStrategy(Int32, CompatibilityStrategy) |
Set the compatibility strategy for a specific interface |
SetCompatibilityStrategy(CompatibilityStrategy)
- Source:
- IVersionManager.cs
Set the compatibility strategy.
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
Parameters
- strategy
- CompatibilityStrategy
The strategy to set. Set to null
to revert to the default strategy provided in configuration.
Returns
A Task representing the operation.
Applies to
SetCompatibilityStrategy(GrainInterfaceType, CompatibilityStrategy)
Set the compatibility strategy for a specific interface.
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
Parameters
- interfaceType
- GrainInterfaceType
The type of the interface.
- strategy
- CompatibilityStrategy
The strategy to set. Set to null
to revert to the default strategy provided in configuration.
Returns
A Task representing the operation.
Applies to
SetCompatibilityStrategy(Int32, CompatibilityStrategy)
- Source:
- IVersionManager.cs
Set the compatibility strategy for a specific interface
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
Parameters
- interfaceId
- Int32
The ID of the interface
- strategy
- CompatibilityStrategy
The strategy to set. Set to null to revert to the default strategy provided in configuration