Share via


HubLifetimeManager<THub>.SetConnectionResultAsync Method

Definition

Sets the connection result for an in progress InvokeConnectionAsync<T>(String, String, Object[], CancellationToken) call.

public virtual System.Threading.Tasks.Task SetConnectionResultAsync (string connectionId, Microsoft.AspNetCore.SignalR.Protocol.CompletionMessage result);
abstract member SetConnectionResultAsync : string * Microsoft.AspNetCore.SignalR.Protocol.CompletionMessage -> System.Threading.Tasks.Task
override this.SetConnectionResultAsync : string * Microsoft.AspNetCore.SignalR.Protocol.CompletionMessage -> System.Threading.Tasks.Task
Public Overridable Function SetConnectionResultAsync (connectionId As String, result As CompletionMessage) As Task

Parameters

connectionId
String

The connection ID.

result
CompletionMessage

The result from the connection.

Returns

A Task that represents the result being set or being forwarded to another server.

Applies to