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)
703async Task OnStreamCanceled(InvocationRequest irq) 749var irq = InvocationRequest.Stream(cancellationToken, returnType, connectionState.GetNextId(), _loggerFactory, this, activity, out channel); 754cancellationToken.Register(state => _ = OnStreamCanceled((InvocationRequest)state!), irq); 1094var irq = InvocationRequest.Invoke(cancellationToken, returnType, connectionState.GetNextId(), _loggerFactory, this, activity, out invocationTask); 1135private async Task InvokeCore(ConnectionState connectionState, string methodName, InvocationRequest irq, object?[] args, string[]? streams, CancellationToken cancellationToken) 1164private async Task InvokeStreamCore(ConnectionState connectionState, string methodName, InvocationRequest irq, object?[] args, string[]? streams, CancellationToken cancellationToken) 1297InvocationRequest? irq; 1454private async Task DispatchInvocationStreamItemAsync(StreamItemMessage streamItem, InvocationRequest irq) 1468private void DispatchInvocationCompletion(CompletionMessage completion, InvocationRequest irq) 2126private readonly Dictionary<string, InvocationRequest> _pendingCalls = new Dictionary<string, InvocationRequest>(StringComparer.Ordinal); 2178public void AddInvocation(InvocationRequest irq) 2194public bool TryGetInvocation(string invocationId, [NotNullWhen(true)] out InvocationRequest? irq) 2202public bool TryRemoveInvocation(string invocationId, [NotNullWhen(true)] out InvocationRequest? irq) 2224foreach (var outstandingCall in _pendingCalls.Values) 2393if (!TryGetInvocation(invocationId, out var irq)) 2405if (!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,