ConnectionExtensions.AsObservable Method (Connection)
.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 ( _
connection As Connection _
) As IObservable(Of String)
'Usage
Dim connection As Connection
Dim returnValue As IObservable(Of String)
returnValue = connection.AsObservable()
public static IObservable<string> AsObservable(
this Connection connection
)
[ExtensionAttribute]
public:
static IObservable<String^>^ AsObservable(
Connection^ connection
)
static member AsObservable :
connection:Connection -> IObservable<string>
public static function AsObservable(
connection : Connection
) : IObservable<String>
Parameters
- connection
Type: Microsoft.AspNet.SignalR.Client.Connection
Return Value
Type: System.IObservable<String>
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).