Share via


ConnectionExtensions.AsObservable<T> Method (Connection, Func<String, T>)

.NET Framework 4

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function AsObservable(Of T) ( _
    connection As Connection, _
    selector As Func(Of String, T) _
) As IObservable(Of T)
'Usage
Dim connection As Connection 
Dim selector As Func(Of String, T)
Dim returnValue As IObservable(Of T)

returnValue = connection.AsObservable(selector)
public static IObservable<T> AsObservable<T>(
    this Connection connection,
    Func<string, T> selector
)
[ExtensionAttribute]
public:
generic<typename T>
static IObservable<T>^ AsObservable(
    Connection^ connection, 
    Func<String^, T>^ selector
)
static member AsObservable : 
        connection:Connection * 
        selector:Func<string, 'T> -> IObservable<'T> 
JScript does not support generic types and methods.

Type Parameters

  • T

Parameters

Return Value

Type: System.IObservable<T>

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Connection. 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.100) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.100).

See Also

Reference

ConnectionExtensions Class

AsObservable Overload

Microsoft.AspNet.SignalR.Client Namespace