Bewerken

Delen via


IManagementGrain.SendControlCommandToProvider Method

Definition

Overloads

SendControlCommandToProvider(String, String, Int32, Object)

Execute a control command on the specified providers on all silos in the cluster. Commands are sent to all known providers on each silo which match both the providerTypeFullName AND providerName parameters.

SendControlCommandToProvider<T>(String, Int32, Object)

Execute a control command on the specified providers on all silos in the cluster. Commands are sent to all known providers on each silo which match both the providerTypeFullName AND providerName parameters.

SendControlCommandToProvider(String, String, Int32, Object)

Source:
IManagementGrain.cs

Execute a control command on the specified providers on all silos in the cluster. Commands are sent to all known providers on each silo which match both the providerTypeFullName AND providerName parameters.

public System.Threading.Tasks.Task<object[]> SendControlCommandToProvider (string providerTypeFullName, string providerName, int command, object arg = default);
abstract member SendControlCommandToProvider : string * string * int * obj -> System.Threading.Tasks.Task<obj[]>
Public Function SendControlCommandToProvider (providerTypeFullName As String, providerName As String, command As Integer, Optional arg As Object = Nothing) As Task(Of Object())

Parameters

providerTypeFullName
String

Class full name for the provider type to send this command to.

providerName
String

Provider name to send this command to.

command
Int32

An id / serial number of this command. This is an opaque value to the Orleans runtime - the control protocol semantics are decided between the sender and provider.

arg
Object

An opaque command argument. This is an opaque value to the Orleans runtime - the control protocol semantics are decided between the sender and provider.

Returns

Completion promise for this operation.

Remarks

Providers must implement the Orleans.Providers.IControllable interface in order to receive these control channel commands.

Applies to

SendControlCommandToProvider<T>(String, Int32, Object)

Execute a control command on the specified providers on all silos in the cluster. Commands are sent to all known providers on each silo which match both the providerTypeFullName AND providerName parameters.

public System.Threading.Tasks.Task<object[]> SendControlCommandToProvider<T> (string providerName, int command, object arg = default) where T : Orleans.Providers.IControllable;
abstract member SendControlCommandToProvider : string * int * obj -> System.Threading.Tasks.Task<obj[]> (requires 'T :> Orleans.Providers.IControllable)
Public Function SendControlCommandToProvider(Of T As IControllable) (providerName As String, command As Integer, Optional arg As Object = Nothing) As Task(Of Object())

Type Parameters

T

Parameters

providerName
String

Provider name to send this command to.

command
Int32

An id / serial number of this command. This is an opaque value to the Orleans runtime - the control protocol semantics are decided between the sender and provider.

arg
Object

An opaque command argument. This is an opaque value to the Orleans runtime - the control protocol semantics are decided between the sender and provider.

Returns

Completion promise for this operation.

Remarks

Providers must implement the Orleans.Providers.IControllable interface in order to receive these control channel commands.

Applies to