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