Share via


ObservableConnection<T>.Subscribe Method

.NET Framework 4

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

Syntax

'Declaration
Public Function Subscribe ( _
    observer As IObserver(Of T) _
) As IDisposable
'Usage
Dim instance As ObservableConnection 
Dim observer As IObserver(Of T)
Dim returnValue As IDisposable 

returnValue = instance.Subscribe(observer)
public IDisposable Subscribe(
    IObserver<T> observer
)
public:
virtual IDisposable^ Subscribe(
    IObserver<T>^ observer
) sealed
abstract Subscribe : 
        observer:IObserver<'T> -> IDisposable  
override Subscribe : 
        observer:IObserver<'T> -> IDisposable
public final function Subscribe(
    observer : IObserver<T>
) : IDisposable

Parameters

Return Value

Type: System.IDisposable
Returns IDisposable.

Implements

IObservable<T>.Subscribe(IObserver<T>)

See Also

Reference

ObservableConnection<T> Class

Microsoft.AspNet.SignalR.Client Namespace