1 write to InvocationId
Microsoft.AspNetCore.SignalR.Common (1)
Protocol\HubInvocationMessage.cs (1)
29InvocationId = invocationId;
44 references to InvocationId
Microsoft.AspNetCore.Components.Server (6)
src\aspnetcore\src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (6)
431if (string.IsNullOrEmpty(message.InvocationId)) 437writer.Write(message.InvocationId); 463writer.Write(message.InvocationId); 487writer.Write(message.InvocationId); 535writer.Write(message.InvocationId); 553writer.Write(message.InvocationId);
Microsoft.AspNetCore.SignalR.Common (8)
Protocol\CompletionMessage.cs (2)
54return $"Completion {{ {nameof(InvocationId)}: \"{InvocationId}\", {nameof(Error)}: {errorStr}{resultField} }}";
Protocol\HubMethodInvocationMessage.cs (4)
120return $"InvocationMessage {{ {nameof(InvocationId)}: \"{InvocationId}\", {nameof(Target)}: \"{Target}\", {nameof(Arguments)}: [ {args} ], {nameof(StreamIds)}: [ {streamIds} ] }}"; 175return $"StreamInvocation {{ {nameof(InvocationId)}: \"{InvocationId}\", {nameof(Target)}: \"{Target}\", {nameof(Arguments)}: [ {args} ], {nameof(StreamIds)}: [ {streamIds} ] }}";
Protocol\StreamItemMessage.cs (2)
29return $"StreamItem {{ {nameof(InvocationId)}: \"{InvocationId}\", {nameof(Item)}: {Item ?? "<<null>>"} }}";
Microsoft.AspNetCore.SignalR.Core (28)
Internal\DefaultHubDispatcher.cs (20)
163Log.DroppingMessage(_logger, hubMessage.GetType().Name, (hubMessage as HubInvocationMessage)?.InvocationId ?? "(null)"); 186if (connection.ActiveRequestCancellationSources.TryGetValue(cancelInvocationMessage.InvocationId!, out var cts)) 188Log.CancelStream(_logger, cancelInvocationMessage.InvocationId!); 213else if (_hubLifetimeManager.TryGetReturnType(completionMessage.InvocationId!, out _)) 219Log.UnexpectedCompletion(_logger, completionMessage.InvocationId!); 251return SendInvocationError(bindingFailureMessage.InvocationId, connection, errorMessage); 289if (!string.IsNullOrEmpty(hubMethodInvocationMessage.InvocationId)) 293hubMethodInvocationMessage.InvocationId, $"Unknown hub method '{hubMethodInvocationMessage.Target}'")).AsTask(); 336await SendInvocationError(hubMethodInvocationMessage.InvocationId, connection, 354await SendInvocationError(hubMethodInvocationMessage.InvocationId, connection, 380_ = StreamAsync(hubMethodInvocationMessage.InvocationId!, connection, arguments, scope, hubActivator, hub, cts, hubMethodInvocationMessage, descriptor); 413Log.SendingResult(logger, hubMethodInvocationMessage.InvocationId, methodExecutor); 420await SendInvocationError(hubMethodInvocationMessage.InvocationId, connection, 442if (!string.IsNullOrEmpty(hubMethodInvocationMessage.InvocationId)) 445await connection.WriteAsync(CompletionMessage.WithResult(hubMethodInvocationMessage.InvocationId, result)); 467await SendInvocationError(hubMethodInvocationMessage.InvocationId, connection, 473await SendInvocationError(hubMethodInvocationMessage.InvocationId, connection, 696if (!string.IsNullOrEmpty(hubMethodInvocationMessage.InvocationId)) 699await connection.WriteAsync(CompletionMessage.WithError(hubMethodInvocationMessage.InvocationId, 709await connection.WriteAsync(CompletionMessage.WithError(hubMethodInvocationMessage.InvocationId!,
Internal\DefaultHubDispatcherLog.cs (3)
75=> ReceivedStreamItem(logger, message.InvocationId); 84=> CompletingStream(logger, message.InvocationId); 90=> ClosingStreamWithBindingError(logger, message.InvocationId, message.Error);
src\aspnetcore\src\SignalR\common\Shared\ClientResultsManager.cs (3)
54if (_pendingInvocations.TryGetValue(message.InvocationId!, out var item)) 58throw new InvalidOperationException($"Connection ID '{connectionId}' is not valid for invocation ID '{message.InvocationId}'."); 64if (_pendingInvocations.Remove(message.InvocationId!, out _))
StreamTracker.cs (2)
54if (TryGetConverter(message.InvocationId!, out var converter)) 76_lookup.TryRemove(message.InvocationId!, out var converter);
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
Protocol\JsonHubProtocol.cs (2)
717if (!string.IsNullOrEmpty(message.InvocationId)) 719writer.WriteString(InvocationIdPropertyNameBytes, message.InvocationId);