Share via


ConnectionHandler.OnConnectedAsync(ConnectionContext) Methode

Definition

Wird aufgerufen, wenn eine neue Verbindung mit dem Endpunkt akzeptiert wird.

public:
 abstract System::Threading::Tasks::Task ^ OnConnectedAsync(Microsoft::AspNetCore::Connections::ConnectionContext ^ connection);
public abstract System.Threading.Tasks.Task OnConnectedAsync (Microsoft.AspNetCore.Connections.ConnectionContext connection);
abstract member OnConnectedAsync : Microsoft.AspNetCore.Connections.ConnectionContext -> System.Threading.Tasks.Task
Public MustOverride Function OnConnectedAsync (connection As ConnectionContext) As Task

Parameter

connection
ConnectionContext

Das neue ConnectionContext

Gibt zurück

Eine Task , die die Lebensdauer der Verbindung darstellt. Wenn die Aufgabe abgeschlossen ist, ist die Verbindung abgeschlossen.

Gilt für: