Share via


HubProxyExtensions.Observe Method

.NET Framework 4.5

Registers a IHubProxy event has an IObservableT.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Observe ( _
    proxy As IHubProxy, _
    eventName As String _
) As IObservable(Of IList(Of JToken))
'Usage
Dim proxy As IHubProxy 
Dim eventName As String 
Dim returnValue As IObservable(Of IList(Of JToken))

returnValue = proxy.Observe(eventName)
public static IObservable<IList<JToken>> Observe(
    this IHubProxy proxy,
    string eventName
)
[ExtensionAttribute]
public:
static IObservable<IList<JToken^>^>^ Observe(
    IHubProxy^ proxy, 
    String^ eventName
)
static member Observe : 
        proxy:IHubProxy * 
        eventName:string -> IObservable<IList<JToken>> 
public static function Observe(
    proxy : IHubProxy, 
    eventName : String
) : IObservable<IList<JToken>>

Parameters

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 https://msdn.microsoft.com/en-us/library/bb384936(v=vs.118) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.118).

See Also

Reference

HubProxyExtensions Class

Microsoft.AspNet.SignalR.Client Namespace