Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

HubProxyExtensions.On<T1, T2, T3> Method (IHubProxy, String, Action<T1, T2, T3>)

.NET Framework 4.5

Registers for an event with the specified name and callback.

Namespace:  Microsoft.AspNet.SignalR.Client.Hubs
Assembly:  Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)
public static IDisposable On<T1, T2, T3>(
	this IHubProxy proxy,
	string eventName,
	Action<T1, T2, T3> onData
)

Type Parameters

T1

T2

T3

Parameters

proxy
Type: Microsoft.AspNet.SignalR.Client.Hubs.IHubProxy
The IHubProxy.
eventName
Type: System.String
The name of the event.
onData
Type: System.Action<T1, T2, T3>
The callback.

Return Value

Type: System.IDisposable
An IDisposable that represents this subscription.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IHubProxy. When you use instance method syntax to call this method, omit the first parameter. For more information, see http://msdn.microsoft.com/en-us/library/bb384936(v=vs.111).aspx or http://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).aspx.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.