Otter SDK Reference
Version:

InvokeAction(IRemoteMethodExecuter agent, System.Action method) Method

Invokes the method on the remote server.

Syntax

public static void InvokeAction(IRemoteMethodExecuter agent, System.Action method)

Parameters

agent
Type: IRemoteMethodExecuter

The agent to invoke the method on.

method
Type: System.Action

The method to invoke.

Exceptions

System.ArgumentNullException

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

System.ArgumentException

method is 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.