CompletionMessage.WithResult(String, Object) Method

Definition

Constructs a CompletionMessage with a result.

public:
 static Microsoft::AspNetCore::SignalR::Protocol::CompletionMessage ^ WithResult(System::String ^ invocationId, System::Object ^ payload);
public static Microsoft.AspNetCore.SignalR.Protocol.CompletionMessage WithResult (string invocationId, object payload);
public static Microsoft.AspNetCore.SignalR.Protocol.CompletionMessage WithResult (string invocationId, object? payload);
static member WithResult : string * obj -> Microsoft.AspNetCore.SignalR.Protocol.CompletionMessage
Public Shared Function WithResult (invocationId As String, payload As Object) As CompletionMessage

Parameters

invocationId
String

The ID of the invocation that is being completed.

payload
Object

The result from the invocation.

Returns

The constructed CompletionMessage.

Applies to