IHubProxy.Invoke<T> Method (String, Object[])

.NET Framework 4.5

Executes a method on the server side hub asynchronously.

Namespace:  Microsoft.AspNet.SignalR.Client.Hubs
Assembly:  Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)

Task<T> Invoke<T>(
	string method,
	params Object[] args
)

Type Parameters

T

The type of result returned from the hub.

Parameters

method
Type: System.String
The name of the method.
args
Type: System.Object[]
The arguments.

Return Value

Type: System.Threading.Tasks.Task<T>
A task that represents when invocation returned.
Show: