Redigera

Dela via


IVersionManager.SetSelectorStrategy Method

Definition

Overloads

SetSelectorStrategy(VersionSelectorStrategy)

Set the selector strategy.

SetSelectorStrategy(GrainInterfaceType, VersionSelectorStrategy)

Set the selector strategy for a specific interface.

SetSelectorStrategy(Int32, VersionSelectorStrategy)

Set the selector strategy for a specific interface

SetSelectorStrategy(VersionSelectorStrategy)

Source:
IVersionManager.cs

Set the selector strategy.

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

Parameters

strategy
VersionSelectorStrategy

The strategy to set. Set to null to revert to the default strategy provided in configuration.

Returns

A Task representing the operation.

Applies to

SetSelectorStrategy(GrainInterfaceType, VersionSelectorStrategy)

Set the selector strategy for a specific interface.

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

Parameters

interfaceType
GrainInterfaceType

The type of the interface.

strategy
VersionSelectorStrategy

The strategy to set. Set to null to revert to the default strategy provided in configuration.

Returns

A Task representing the operation.

Applies to

SetSelectorStrategy(Int32, VersionSelectorStrategy)

Source:
IVersionManager.cs

Set the selector strategy for a specific interface

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

Parameters

interfaceId
Int32

The ID of the interface

strategy
VersionSelectorStrategy

The strategy to set. Set to null to revert to the default strategy provided in configuration

Returns

Applies to