Otter SDK Reference
Version:

InvokeAction<T>(IRemoteMethodExecuter agent, System.Action<T> method, T arg) Method

Invokes the method on the remote server using the specified argument.

Syntax

public static void InvokeAction<T>(IRemoteMethodExecuter agent, Action<T> method, T arg)

Parameters

agent
Type: IRemoteMethodExecuter

The agent to invoke the method on.

method
Type: System.Action<T>

The method to invoke.

arg
Type: T

The parameter to pass to the method.

Exceptions

System.ArgumentNullException

agent or method is null (Nothing in Visual Basic).

System.ArgumentException

method is not valid or parameters are not valid. See Remarks.

Remarks

The method supplied in method must refer to a single static method or a single instance method of a serializable class. The parameter values must correspond to the arguments types of the specified method. If the remote method throws an unhandled exception, the exception will be rethrown at the client.