1 implementation of Caller
Microsoft.AspNetCore.SignalR.Core (1)
Internal\HubCallerClients.cs (1)
27public ISingleClientProxy Caller
31 references to Caller
Microsoft.AspNetCore.Components.Server (16)
ComponentHub.cs (16)
95await NotifyClientError(Clients.Caller, $"The circuit host '{circuitHost.CircuitId}' has already been initialized."); 111await NotifyClientError(Clients.Caller, "The uris provided are invalid."); 119await NotifyClientError(Clients.Caller, "The list of component records is not valid."); 126var circuitClient = new CircuitClientProxy(Clients.Caller, Context.ConnectionId); 163await NotifyClientError(Clients.Caller, "The circuit failed to initialize."); 197await NotifyClientError(Clients.Caller, "The list of component operations is not valid."); 224Clients.Caller, 292await NotifyClientError(Clients.Caller, $"The circuit host '{circuitHost.CircuitId}' has already been initialized."); 308await NotifyClientError(Clients.Caller, "The uris provided are invalid."); 320await NotifyClientError(Clients.Caller, "The circuit state could not be retrieved. It may have been deleted or expired."); 332await NotifyClientError(Clients.Caller, "The root components or application state provided are invalid."); 341Clients.Caller, 352var circuitClient = new CircuitClientProxy(Clients.Caller, Context.ConnectionId); 390await NotifyClientError(Clients.Caller, "The circuit failed to initialize."); 565await NotifyClientError(Clients.Caller, "Circuit has been shut down due to error."); 574await NotifyClientError(Clients.Caller, "Circuit not initialized.");
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\ComponentHubTest.cs (1)
317mockCaller.Setup(x => x.Caller).Returns(mockClientProxy.Object);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Hubs.cs (1)
312return Clients.Caller.SendAsync("NewProtocolMethodClient");
Microsoft.AspNetCore.SignalR.Core (2)
DynamicHubClients.cs (1)
42public dynamic Caller => new DynamicClientProxy(_clients.Caller);
Internal\TypedHubClients.cs (1)
22public T Caller => TypedClientBuilder<T>.Build(_hubClients.Caller);
Microsoft.AspNetCore.SignalR.Tests (10)
HubConnectionHandlerTestUtils\Hubs.cs (10)
179return Clients.Caller.SendAsync("Send", message); 184return Clients.Caller.SendAsync("Send", new SelfRef()); 340var sum = await Clients.Caller.InvokeAsync<int>("Sum", num, cancellationToken: default); 346var caller = Clients.Caller; 364var sum = await Clients.Caller.InvokeAsync<int>("Sum", 1, cancellationToken: default); 370var sum = await Clients.Caller.InvokeAsync<int>("Sum", 1, cancellationToken: default); 1281return Clients.Caller.SendAsync("Send", new SelfRef()); 1313await Clients.Caller.InvokeAsync<int>("Test", cancellationToken: default); 1321await Clients.Caller.InvokeAsync<int>("Test", cancellationToken: default); 1336_service.SetCaller(Clients.Caller);
SignalRSamples (1)
Hubs\Chat.cs (1)
63return Clients.Caller.SendAsync("Send", $"{name}: {message}");