HubProxyExtensions.Observe Method

.NET Framework 4.5

Registers a IHubProxy event as an IObservableT.

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

public static IObservable<IList<JToken>> Observe(
	this IHubProxy proxy,
	string eventName


Type: Microsoft.AspNet.SignalR.Client.Hubs.IHubProxy
The IHubProxy
Type: System.String
The name of the event.

Return Value

Type: System.IObservable<IList<JToken>>
An IObservableobject .

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 or