2 types derived from InvocationRequest
Microsoft.AspNetCore.SignalR.Client.Core (2)
Internal\InvocationRequest.cs (2)
79private sealed class Streaming : InvocationRequest 167private sealed class NonStreaming : InvocationRequest
22 references to InvocationRequest
Microsoft.AspNetCore.SignalR.Client.Core (22)
HubConnection.cs (19)
697async Task OnStreamCanceled(InvocationRequest irq) 743var irq = InvocationRequest.Stream(cancellationToken, returnType, connectionState.GetNextId(), _loggerFactory, this, activity, out channel); 748cancellationToken.Register(state => _ = OnStreamCanceled((InvocationRequest)state!), irq); 1088var irq = InvocationRequest.Invoke(cancellationToken, returnType, connectionState.GetNextId(), _loggerFactory, this, activity, out invocationTask); 1129private async Task InvokeCore(ConnectionState connectionState, string methodName, InvocationRequest irq, object?[] args, string[]? streams, CancellationToken cancellationToken) 1158private async Task InvokeStreamCore(ConnectionState connectionState, string methodName, InvocationRequest irq, object?[] args, string[]? streams, CancellationToken cancellationToken) 1291InvocationRequest? irq; 1448private async Task DispatchInvocationStreamItemAsync(StreamItemMessage streamItem, InvocationRequest irq) 1462private void DispatchInvocationCompletion(CompletionMessage completion, InvocationRequest irq) 2120private readonly Dictionary<string, InvocationRequest> _pendingCalls = new Dictionary<string, InvocationRequest>(StringComparer.Ordinal); 2172public void AddInvocation(InvocationRequest irq) 2188public bool TryGetInvocation(string invocationId, [NotNullWhen(true)] out InvocationRequest? irq) 2196public bool TryRemoveInvocation(string invocationId, [NotNullWhen(true)] out InvocationRequest? irq) 2218foreach (var outstandingCall in _pendingCalls.Values) 2387if (!TryGetInvocation(invocationId, out var irq)) 2399if (!TryGetInvocation(invocationId, out var irq))
Internal\InvocationRequest.cs (3)
30_cancellationTokenRegistration = cancellationToken.Register(self => ((InvocationRequest)self!).Cancel(), this); 48public static InvocationRequest Invoke(CancellationToken cancellationToken, Type resultType, string invocationId, ILoggerFactory loggerFactory, HubConnection hubConnection, Activity? activity, out Task<object?> result) 55public static InvocationRequest Stream(CancellationToken cancellationToken, Type resultType, string invocationId,