6 implementations of ISingleClientProxy
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitClientProxy.cs (1)
8
internal sealed class CircuitClientProxy :
ISingleClientProxy
Microsoft.AspNetCore.SignalR.Core (4)
Internal\HubCallerClients.cs (2)
99
private sealed class NoInvokeSingleClientProxy :
ISingleClientProxy
119
private sealed class SingleClientProxy :
ISingleClientProxy
Internal\NonInvokingSingleClientProxy.cs (1)
6
internal sealed class NonInvokingSingleClientProxy :
ISingleClientProxy
Internal\Proxies.cs (1)
148
internal sealed class SingleClientProxy<THub> :
ISingleClientProxy
where THub : Hub
Microsoft.AspNetCore.SignalR.Tests (1)
Internal\TypedClientBuilderTests.cs (1)
356
private class MockSingleClientProxy :
ISingleClientProxy
98 references to ISingleClientProxy
Microsoft.AspNetCore.Components.Server (5)
Circuits\CircuitClientProxy.cs (3)
15
public CircuitClientProxy(
ISingleClientProxy
clientProxy, string connectionId)
24
public
ISingleClientProxy
Client { get; private set; }
26
public void Transfer(
ISingleClientProxy
clientProxy, string connectionId)
Circuits\CircuitRegistry.cs (2)
172
public virtual async Task<CircuitHost> ConnectAsync(CircuitId circuitId,
ISingleClientProxy
clientProxy, string connectionId, CancellationToken cancellationToken)
231
protected virtual (CircuitHost circuitHost, bool previouslyConnected) ConnectCore(CircuitId circuitId,
ISingleClientProxy
clientProxy, string connectionId)
Microsoft.AspNetCore.Components.Server.Tests (46)
Circuits\CircuitClientProxyTest.cs (4)
16
var clientProxy = new Mock<
ISingleClientProxy
>();
37
var
clientProxy = Mock.Of<
ISingleClientProxy
>(
43
circuitClient.Transfer(Mock.Of<
ISingleClientProxy
>(), "connection1");
Circuits\CircuitHostTest.cs (5)
419
var mockClientProxy = new Mock<
ISingleClientProxy
>();
453
var mockClientProxy = new Mock<
ISingleClientProxy
>();
480
var mockClientProxy = new Mock<
ISingleClientProxy
>();
757
Mock.Of<
ISingleClientProxy
>());
816
public TestRemoteRenderer(IServiceProvider serviceProvider,
ISingleClientProxy
client)
Circuits\CircuitPersistenceManagerTest.cs (3)
165
var mockClientProxy = new Mock<
ISingleClientProxy
>();
229
var mockClientProxy = new Mock<
ISingleClientProxy
>();
425
client ??= new CircuitClientProxy(Mock.Of<
ISingleClientProxy
>(), Guid.NewGuid().ToString());
Circuits\CircuitRegistryTest.cs (22)
45
var
newClient = Mock.Of<
ISingleClientProxy
>();
70
var
newClient = Mock.Of<
ISingleClientProxy
>();
96
var
newClient = Mock.Of<
ISingleClientProxy
>();
120
var
newClient = Mock.Of<
ISingleClientProxy
>();
145
var
newClient = Mock.Of<
ISingleClientProxy
>();
242
var
client = Mock.Of<
ISingleClientProxy
>();
299
var
client = Mock.Of<
ISingleClientProxy
>();
352
var
client = Mock.Of<
ISingleClientProxy
>();
390
var
client = Mock.Of<
ISingleClientProxy
>();
456
await registry.ConnectAsync(circuitHost.CircuitId, Mock.Of<
ISingleClientProxy
>(), "new-connection", default);
511
var
newClient = Mock.Of<
ISingleClientProxy
>();
585
protected override (CircuitHost, bool) ConnectCore(CircuitId circuitId,
ISingleClientProxy
clientProxy, string connectionId)
Circuits\ComponentHubTest.cs (3)
279
private static (Mock<
ISingleClientProxy
>, ComponentHub) InitializeComponentHub(
316
var mockClientProxy = new Mock<
ISingleClientProxy
>();
416
var clientProxy = new CircuitClientProxy(Mock.Of<
ISingleClientProxy
>(), "123");
Circuits\RemoteRendererTest.cs (8)
140
var initialClient = new Mock<
ISingleClientProxy
>();
153
var client = new Mock<
ISingleClientProxy
>();
200
var offlineClient = new CircuitClientProxy(new Mock<
ISingleClientProxy
>(MockBehavior.Strict).Object, "offline-client");
211
var onlineClient = new Mock<
ISingleClientProxy
>();
263
var offlineClient = new CircuitClientProxy(new Mock<
ISingleClientProxy
>(MockBehavior.Strict).Object, "offline-client");
274
var onlineClient = new Mock<
ISingleClientProxy
>();
328
var onlineClient = new Mock<
ISingleClientProxy
>();
385
var onlineClient = new Mock<
ISingleClientProxy
>();
Circuits\TestCircuitHost.cs (1)
34
clientProxy = clientProxy ?? new CircuitClientProxy(Mock.Of<
ISingleClientProxy
>(), Guid.NewGuid().ToString());
Microsoft.AspNetCore.SignalR.Core (46)
ClientProxyExtensions.cs (32)
223
/// Invokes a method on the connection represented by the <see cref="
ISingleClientProxy
"/> instance and waits for a response.
225
/// <param name="clientProxy">The <see cref="
ISingleClientProxy
"/>.</param>
230
public static Task<T> InvokeAsync<T>(this
ISingleClientProxy
clientProxy, string method, CancellationToken cancellationToken)
236
/// Invokes a method on the connection represented by the <see cref="
ISingleClientProxy
"/> instance and waits for a response.
238
/// <param name="clientProxy">The <see cref="
ISingleClientProxy
"/>.</param>
244
public static Task<T> InvokeAsync<T>(this
ISingleClientProxy
clientProxy, string method, object? arg1, CancellationToken cancellationToken)
250
/// Invokes a method on the connection represented by the <see cref="
ISingleClientProxy
"/> instance and waits for a response.
252
/// <param name="clientProxy">The <see cref="
ISingleClientProxy
"/>.</param>
259
public static Task<T> InvokeAsync<T>(this
ISingleClientProxy
clientProxy, string method, object? arg1, object? arg2, CancellationToken cancellationToken)
265
/// Invokes a method on the connection represented by the <see cref="
ISingleClientProxy
"/> instance and waits for a response.
267
/// <param name="clientProxy">The <see cref="
ISingleClientProxy
"/>.</param>
275
public static Task<T> InvokeAsync<T>(this
ISingleClientProxy
clientProxy, string method, object? arg1, object? arg2, object? arg3, CancellationToken cancellationToken)
281
/// Invokes a method on the connection represented by the <see cref="
ISingleClientProxy
"/> instance and waits for a response.
283
/// <param name="clientProxy">The <see cref="
ISingleClientProxy
"/>.</param>
292
public static Task<T> InvokeAsync<T>(this
ISingleClientProxy
clientProxy, string method, object? arg1, object? arg2, object? arg3, object? arg4, CancellationToken cancellationToken)
298
/// Invokes a method on the connection represented by the <see cref="
ISingleClientProxy
"/> instance and waits for a response.
300
/// <param name="clientProxy">The <see cref="
ISingleClientProxy
"/>.</param>
310
public static Task<T> InvokeAsync<T>(this
ISingleClientProxy
clientProxy, string method, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, CancellationToken cancellationToken)
316
/// Invokes a method on the connection represented by the <see cref="
ISingleClientProxy
"/> instance and waits for a response.
318
/// <param name="clientProxy">The <see cref="
ISingleClientProxy
"/>.</param>
329
public static Task<T> InvokeAsync<T>(this
ISingleClientProxy
clientProxy, string method, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, CancellationToken cancellationToken)
335
/// Invokes a method on the connection represented by the <see cref="
ISingleClientProxy
"/> instance and waits for a response.
349
public static Task<T> InvokeAsync<T>(this
ISingleClientProxy
clientProxy, string method, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, CancellationToken cancellationToken)
355
/// Invokes a method on the connection represented by the <see cref="
ISingleClientProxy
"/> instance and waits for a response.
357
/// <param name="clientProxy">The <see cref="
ISingleClientProxy
"/>.</param>
370
public static Task<T> InvokeAsync<T>(this
ISingleClientProxy
clientProxy, string method, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, object? arg8, CancellationToken cancellationToken)
376
/// Invokes a method on the connection represented by the <see cref="
ISingleClientProxy
"/> instance and waits for a response.
378
/// <param name="clientProxy">The <see cref="
ISingleClientProxy
"/>.</param>
392
public static Task<T> InvokeAsync<T>(this
ISingleClientProxy
clientProxy, string method, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, object? arg8, object? arg9, CancellationToken cancellationToken)
398
/// Invokes a method on the connection represented by the <see cref="
ISingleClientProxy
"/> instance and waits for a response.
400
/// <param name="clientProxy">The <see cref="
ISingleClientProxy
"/>.</param>
415
public static Task<T> InvokeAsync<T>(this
ISingleClientProxy
clientProxy, string method, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, object? arg8, object? arg9, object? arg10, CancellationToken cancellationToken)
IHubCallerClients.cs (2)
18
new
ISingleClientProxy
Client(string connectionId) => new NonInvokingSingleClientProxy(((IHubCallerClients<IClientProxy>)this).Client(connectionId), "IHubCallerClients.Client(string connectionId)");
24
new
ISingleClientProxy
Caller => new NonInvokingSingleClientProxy(((IHubCallerClients<IClientProxy>)this).Caller, "IHubCallerClients.Caller");
IHubClients.cs (1)
18
new
ISingleClientProxy
Client(string connectionId) => new NonInvokingSingleClientProxy(((IHubClients<IClientProxy>)this).Client(connectionId), "IHubClients.Client(string connectionId)");
Internal\HubCallerClients.cs (6)
27
public
ISingleClientProxy
Caller
49
public
ISingleClientProxy
Client(string connectionId)
101
private readonly
ISingleClientProxy
_proxy;
103
public NoInvokeSingleClientProxy(
ISingleClientProxy
hubClients)
121
private readonly
ISingleClientProxy
_proxy;
124
public SingleClientProxy(
ISingleClientProxy
hubClients, HubCallerClients hubCallerClients)
Internal\HubClients.cs (1)
24
public
ISingleClientProxy
Client(string connectionId)
Internal\TypedClientBuilder.cs (3)
132
invokeMethod = typeof(
ISingleClientProxy
).GetMethod(
133
nameof(
ISingleClientProxy
.InvokeCoreAsync), BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null,
180
var singleClientProxyType = typeof(
ISingleClientProxy
);
ISingleClientProxy.cs (1)
16
/// Invokes a method on the connection represented by the <see cref="
ISingleClientProxy
"/> instance and waits for a result.
Microsoft.AspNetCore.SignalR.Tests (1)
HubConnectionHandlerTestUtils\Hubs.cs (1)
346
var
caller = Clients.Caller;