6 implementations of ISingleClientProxy
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitClientProxy.cs (1)
8internal sealed class CircuitClientProxy : ISingleClientProxy
Microsoft.AspNetCore.SignalR.Core (4)
Internal\HubCallerClients.cs (2)
99private sealed class NoInvokeSingleClientProxy : ISingleClientProxy 119private sealed class SingleClientProxy : ISingleClientProxy
Internal\NonInvokingSingleClientProxy.cs (1)
6internal sealed class NonInvokingSingleClientProxy : ISingleClientProxy
Internal\Proxies.cs (1)
148internal sealed class SingleClientProxy<THub> : ISingleClientProxy where THub : Hub
Microsoft.AspNetCore.SignalR.Tests (1)
Internal\TypedClientBuilderTests.cs (1)
356private class MockSingleClientProxy : ISingleClientProxy
98 references to ISingleClientProxy
Microsoft.AspNetCore.Components.Server (5)
Circuits\CircuitClientProxy.cs (3)
15public CircuitClientProxy(ISingleClientProxy clientProxy, string connectionId) 24public ISingleClientProxy Client { get; private set; } 26public void Transfer(ISingleClientProxy clientProxy, string connectionId)
Circuits\CircuitRegistry.cs (2)
172public virtual async Task<CircuitHost> ConnectAsync(CircuitId circuitId, ISingleClientProxy clientProxy, string connectionId, CancellationToken cancellationToken) 231protected virtual (CircuitHost circuitHost, bool previouslyConnected) ConnectCore(CircuitId circuitId, ISingleClientProxy clientProxy, string connectionId)
Microsoft.AspNetCore.Components.Server.Tests (46)
Circuits\CircuitClientProxyTest.cs (4)
16var clientProxy = new Mock<ISingleClientProxy>(); 37var clientProxy = Mock.Of<ISingleClientProxy>( 43circuitClient.Transfer(Mock.Of<ISingleClientProxy>(), "connection1");
Circuits\CircuitHostTest.cs (5)
419var mockClientProxy = new Mock<ISingleClientProxy>(); 453var mockClientProxy = new Mock<ISingleClientProxy>(); 480var mockClientProxy = new Mock<ISingleClientProxy>(); 757Mock.Of<ISingleClientProxy>()); 816public TestRemoteRenderer(IServiceProvider serviceProvider, ISingleClientProxy client)
Circuits\CircuitPersistenceManagerTest.cs (3)
165var mockClientProxy = new Mock<ISingleClientProxy>(); 229var mockClientProxy = new Mock<ISingleClientProxy>(); 425client ??= new CircuitClientProxy(Mock.Of<ISingleClientProxy>(), Guid.NewGuid().ToString());
Circuits\CircuitRegistryTest.cs (22)
45var newClient = Mock.Of<ISingleClientProxy>(); 70var newClient = Mock.Of<ISingleClientProxy>(); 96var newClient = Mock.Of<ISingleClientProxy>(); 120var newClient = Mock.Of<ISingleClientProxy>(); 145var newClient = Mock.Of<ISingleClientProxy>(); 242var client = Mock.Of<ISingleClientProxy>(); 299var client = Mock.Of<ISingleClientProxy>(); 352var client = Mock.Of<ISingleClientProxy>(); 390var client = Mock.Of<ISingleClientProxy>(); 456await registry.ConnectAsync(circuitHost.CircuitId, Mock.Of<ISingleClientProxy>(), "new-connection", default); 511var newClient = Mock.Of<ISingleClientProxy>(); 585protected override (CircuitHost, bool) ConnectCore(CircuitId circuitId, ISingleClientProxy clientProxy, string connectionId)
Circuits\ComponentHubTest.cs (3)
279private static (Mock<ISingleClientProxy>, ComponentHub) InitializeComponentHub( 316var mockClientProxy = new Mock<ISingleClientProxy>(); 416var clientProxy = new CircuitClientProxy(Mock.Of<ISingleClientProxy>(), "123");
Circuits\RemoteRendererTest.cs (8)
140var initialClient = new Mock<ISingleClientProxy>(); 153var client = new Mock<ISingleClientProxy>(); 200var offlineClient = new CircuitClientProxy(new Mock<ISingleClientProxy>(MockBehavior.Strict).Object, "offline-client"); 211var onlineClient = new Mock<ISingleClientProxy>(); 263var offlineClient = new CircuitClientProxy(new Mock<ISingleClientProxy>(MockBehavior.Strict).Object, "offline-client"); 274var onlineClient = new Mock<ISingleClientProxy>(); 328var onlineClient = new Mock<ISingleClientProxy>(); 385var onlineClient = new Mock<ISingleClientProxy>();
Circuits\TestCircuitHost.cs (1)
34clientProxy = 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> 230public 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> 244public 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> 259public 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> 275public 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> 292public 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> 310public 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> 329public 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. 349public 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> 370public 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> 392public 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> 415public 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)
18new ISingleClientProxy Client(string connectionId) => new NonInvokingSingleClientProxy(((IHubCallerClients<IClientProxy>)this).Client(connectionId), "IHubCallerClients.Client(string connectionId)"); 24new ISingleClientProxy Caller => new NonInvokingSingleClientProxy(((IHubCallerClients<IClientProxy>)this).Caller, "IHubCallerClients.Caller");
IHubClients.cs (1)
18new ISingleClientProxy Client(string connectionId) => new NonInvokingSingleClientProxy(((IHubClients<IClientProxy>)this).Client(connectionId), "IHubClients.Client(string connectionId)");
Internal\HubCallerClients.cs (6)
27public ISingleClientProxy Caller 49public ISingleClientProxy Client(string connectionId) 101private readonly ISingleClientProxy _proxy; 103public NoInvokeSingleClientProxy(ISingleClientProxy hubClients) 121private readonly ISingleClientProxy _proxy; 124public SingleClientProxy(ISingleClientProxy hubClients, HubCallerClients hubCallerClients)
Internal\HubClients.cs (1)
24public ISingleClientProxy Client(string connectionId)
Internal\TypedClientBuilder.cs (3)
132invokeMethod = typeof(ISingleClientProxy).GetMethod( 133nameof(ISingleClientProxy.InvokeCoreAsync), BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, 180var 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)
346var caller = Clients.Caller;