OwinExtensions.MapConnection<T> Method (IAppBuilder, String, ConnectionConfiguration)
.NET Framework 4
Namespace: Owin
Assembly: Microsoft.AspNet.SignalR.Owin (in Microsoft.AspNet.SignalR.Owin.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function MapConnection(Of T As PersistentConnection) ( _
builder As IAppBuilder, _
url As String, _
configuration As ConnectionConfiguration _
) As IAppBuilder
'Usage
Dim builder As IAppBuilder
Dim url As String
Dim configuration As ConnectionConfiguration
Dim returnValue As IAppBuilder
returnValue = builder.MapConnection(url, _
configuration)
public static IAppBuilder MapConnection<T>(
this IAppBuilder builder,
string url,
ConnectionConfiguration configuration
)
where T : PersistentConnection
[ExtensionAttribute]
public:
generic<typename T>
where T : PersistentConnection
static IAppBuilder^ MapConnection(
IAppBuilder^ builder,
String^ url,
ConnectionConfiguration^ configuration
)
static member MapConnection :
builder:IAppBuilder *
url:string *
configuration:ConnectionConfiguration -> IAppBuilder when 'T : PersistentConnection
JScript does not support generic types and methods.
Type Parameters
- T
Parameters
- builder
Type: IAppBuilder
- url
Type: System.String
- configuration
Type: Microsoft.AspNet.SignalR.ConnectionConfiguration
Return Value
Type: IAppBuilder
Returns IAppBuilder.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IAppBuilder. 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).