Udostępnij za pośrednictwem


HubDispatcher.OnConnected Method

.NET Framework 4This member overrides PersistentConnection.OnConnected(IRequest, String).

Namespace:  Microsoft.AspNet.SignalR.Hubs
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

'Declaration
Protected Overrides Function OnConnected ( _
    request As IRequest, _
    connectionId As String _
) As Task
'Usage
Dim request As IRequest 
Dim connectionId As String 
Dim returnValue As Task 

returnValue = Me.OnConnected(request, _
    connectionId)
protected override Task OnConnected(
    IRequest request,
    string connectionId
)
protected:
virtual Task^ OnConnected(
    IRequest^ request, 
    String^ connectionId
) override
abstract OnConnected : 
        request:IRequest * 
        connectionId:string -> Task  
override OnConnected : 
        request:IRequest * 
        connectionId:string -> Task
protected override function OnConnected(
    request : IRequest, 
    connectionId : String
) : Task

Parameters

Return Value

Type: System.Threading.Tasks.Task

See Also

Reference

HubDispatcher Class

Microsoft.AspNet.SignalR.Hubs Namespace