MethodDictionary.Call(TResult) Method (String, Object[])

Tungsten Suite

MethodDictionaryCallTResult Method (String, Object)

Call a method on the Tungsten.Net.RPC Server.

Namespace:  W.Net.RPC
Assembly:  Tungsten.Net (in Tungsten.Net.dll) Version: 2.0.2
Syntax
C#
public TResult Call<TResult>(
	string method,
	params Object[] args
)

Parameters

method
Type: SystemString
The namespace, class name and method name of the method to call (ie: MyNamespace.MyClass.Method1)
args
Type: SystemObject
Arguments, if any, to be passed into the remote method

Type Parameters

TResult
The expected return type of the call

Return Value

Type: TResult
A result of type TResult
Remarks
If TResult does not match the return type of the method on the server, a return value cannot be expected and the call may time out.
See Also