1 interface inheriting from IClientProxy
Microsoft.AspNetCore.SignalR.Core (1)
ISingleClientProxy.cs (1)
9public interface ISingleClientProxy : IClientProxy
11 implementations of IClientProxy
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitClientProxy.cs (1)
8internal sealed class CircuitClientProxy : IClientProxy
Microsoft.AspNetCore.SignalR.Core (8)
Internal\Proxies.cs (8)
6internal sealed class UserProxy<THub> : IClientProxy where THub : Hub 25internal sealed class MultipleUserProxy<THub> : IClientProxy where THub : Hub 42internal sealed class GroupProxy<THub> : IClientProxy where THub : Hub 61internal sealed class MultipleGroupProxy<THub> : IClientProxy where THub : Hub 78internal sealed class GroupExceptProxy<THub> : IClientProxy where THub : Hub 99internal sealed class AllClientProxy<THub> : IClientProxy where THub : Hub 114internal sealed class AllClientsExceptProxy<THub> : IClientProxy where THub : Hub 131internal sealed class MultipleClientProxy<THub> : IClientProxy where THub : Hub
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
TypedClientBuilderBenchmark.cs (1)
21private sealed class DummyProxy : IClientProxy
Microsoft.AspNetCore.SignalR.Tests (1)
Internal\TypedClientBuilderTests.cs (1)
342private class MockProxy : IClientProxy
120 references to IClientProxy
Microsoft.AspNetCore.Components.Server (7)
Circuits\CircuitClientProxy.cs (3)
15public CircuitClientProxy(IClientProxy clientProxy, string connectionId) 24public IClientProxy Client { get; private set; } 26public void Transfer(IClientProxy clientProxy, string connectionId)
Circuits\CircuitHost.cs (1)
706private async Task TryNotifyClientErrorAsync(IClientProxy client, string error, Exception exception = null)
Circuits\CircuitRegistry.cs (2)
169public virtual async Task<CircuitHost> ConnectAsync(CircuitId circuitId, IClientProxy clientProxy, string connectionId, CancellationToken cancellationToken) 228protected virtual (CircuitHost circuitHost, bool previouslyConnected) ConnectCore(CircuitId circuitId, IClientProxy clientProxy, string connectionId)
ComponentHub.cs (1)
370private static Task NotifyClientError(IClientProxy client, string error) => client.SendAsync("JS.Error", error);
Microsoft.AspNetCore.Components.Server.Tests (31)
Circuits\CircuitClientProxyTest.cs (4)
16var clientProxy = new Mock<IClientProxy>(); 37var clientProxy = Mock.Of<IClientProxy>( 43circuitClient.Transfer(Mock.Of<IClientProxy>(), "connection1");
Circuits\CircuitHostTest.cs (2)
648Mock.Of<IClientProxy>()); 707public TestRemoteRenderer(IServiceProvider serviceProvider, IClientProxy client)
Circuits\CircuitRegistryTest.cs (16)
40var newClient = Mock.Of<IClientProxy>(); 65var newClient = Mock.Of<IClientProxy>(); 91var newClient = Mock.Of<IClientProxy>(); 115var newClient = Mock.Of<IClientProxy>(); 140var newClient = Mock.Of<IClientProxy>(); 237var client = Mock.Of<IClientProxy>(); 276var client = Mock.Of<IClientProxy>(); 342await registry.ConnectAsync(circuitHost.CircuitId, Mock.Of<IClientProxy>(), "new-connection", default); 366protected override (CircuitHost, bool) ConnectCore(CircuitId circuitId, IClientProxy clientProxy, string connectionId)
Circuits\RemoteRendererTest.cs (8)
140var initialClient = new Mock<IClientProxy>(); 153var client = new Mock<IClientProxy>(); 200var offlineClient = new CircuitClientProxy(new Mock<IClientProxy>(MockBehavior.Strict).Object, "offline-client"); 211var onlineClient = new Mock<IClientProxy>(); 263var offlineClient = new CircuitClientProxy(new Mock<IClientProxy>(MockBehavior.Strict).Object, "offline-client"); 274var onlineClient = new Mock<IClientProxy>(); 328var onlineClient = new Mock<IClientProxy>(); 385var onlineClient = new Mock<IClientProxy>();
Circuits\TestCircuitHost.cs (1)
30clientProxy = clientProxy ?? new CircuitClientProxy(Mock.Of<IClientProxy>(), Guid.NewGuid().ToString());
Microsoft.AspNetCore.SignalR.Core (79)
ClientProxyExtensions.cs (35)
9/// Extension methods for <see cref="IClientProxy"/>. 14/// Invokes a method on the connection(s) represented by the <see cref="IClientProxy"/> instance. 17/// <param name="clientProxy">The <see cref="IClientProxy"/></param> 22public static Task SendAsync(this IClientProxy clientProxy, string method, CancellationToken cancellationToken = default) 28/// Invokes a method on the connection(s) represented by the <see cref="IClientProxy"/> instance. 31/// <param name="clientProxy">The <see cref="IClientProxy"/></param> 37public static Task SendAsync(this IClientProxy clientProxy, string method, object? arg1, CancellationToken cancellationToken = default) 43/// Invokes a method on the connection(s) represented by the <see cref="IClientProxy"/> instance. 46/// <param name="clientProxy">The <see cref="IClientProxy"/></param> 53public static Task SendAsync(this IClientProxy clientProxy, string method, object? arg1, object? arg2, CancellationToken cancellationToken = default) 59/// Invokes a method on the connection(s) represented by the <see cref="IClientProxy"/> instance. 62/// <param name="clientProxy">The <see cref="IClientProxy"/></param> 70public static Task SendAsync(this IClientProxy clientProxy, string method, object? arg1, object? arg2, object? arg3, CancellationToken cancellationToken = default) 76/// Invokes a method on the connection(s) represented by the <see cref="IClientProxy"/> instance. 79/// <param name="clientProxy">The <see cref="IClientProxy"/></param> 88public static Task SendAsync(this IClientProxy clientProxy, string method, object? arg1, object? arg2, object? arg3, object? arg4, CancellationToken cancellationToken = default) 94/// Invokes a method on the connection(s) represented by the <see cref="IClientProxy"/> instance. 97/// <param name="clientProxy">The <see cref="IClientProxy"/></param> 107public static Task SendAsync(this IClientProxy clientProxy, string method, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, CancellationToken cancellationToken = default) 113/// Invokes a method on the connection(s) represented by the <see cref="IClientProxy"/> instance. 116/// <param name="clientProxy">The <see cref="IClientProxy"/></param> 127public static Task SendAsync(this IClientProxy clientProxy, string method, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, CancellationToken cancellationToken = default) 133/// Invokes a method on the connection(s) represented by the <see cref="IClientProxy"/> instance. 136/// <param name="clientProxy">The <see cref="IClientProxy"/></param> 148public static Task SendAsync(this IClientProxy clientProxy, string method, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, CancellationToken cancellationToken = default) 154/// Invokes a method on the connection(s) represented by the <see cref="IClientProxy"/> instance. 157/// <param name="clientProxy">The <see cref="IClientProxy"/></param> 170public static Task SendAsync(this IClientProxy clientProxy, string method, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, object? arg8, CancellationToken cancellationToken = default) 176/// Invokes a method on the connection(s) represented by the <see cref="IClientProxy"/> instance. 179/// <param name="clientProxy">The <see cref="IClientProxy"/></param> 193public static Task SendAsync(this IClientProxy clientProxy, string method, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, object? arg8, object? arg9, CancellationToken cancellationToken = default) 199/// Invokes a method on the connection(s) represented by the <see cref="IClientProxy"/> instance. 202/// <param name="clientProxy">The <see cref="IClientProxy"/></param> 217public static Task SendAsync(this IClientProxy 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 = default) 337/// <param name="clientProxy">The <see cref="IClientProxy"/></param>
IClientProxy.cs (1)
16/// Invokes a method on the connection(s) represented by the <see cref="IClientProxy"/> instance.
IHubCallerClients.cs (3)
11public interface IHubCallerClients : IHubCallerClients<IClientProxy> 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 (2)
11public interface IHubClients : IHubClients<IClientProxy> 18new ISingleClientProxy Client(string connectionId) => new NonInvokingSingleClientProxy(((IHubClients<IClientProxy>)this).Client(connectionId), "IHubClients.Client(string connectionId)");
Internal\DynamicClientProxy.cs (2)
11private readonly IClientProxy _clientProxy; 14public DynamicClientProxy(IClientProxy clientProxy)
Internal\HubCallerClients.cs (14)
26IClientProxy IHubCallerClients<IClientProxy>.Caller => Caller; 39public IClientProxy Others => _hubClients.AllExcept(new[] { _connectionId }); 41public IClientProxy All => _hubClients.All; 43public IClientProxy AllExcept(IReadOnlyList<string> excludedConnectionIds) 48IClientProxy IHubClients<IClientProxy>.Client(string connectionId) => Client(connectionId); 58public IClientProxy Group(string groupName) 63public IClientProxy Groups(IReadOnlyList<string> groupNames) 68public IClientProxy OthersInGroup(string groupName) 73public IClientProxy GroupExcept(string groupName, IReadOnlyList<string> excludedConnectionIds) 78public IClientProxy User(string userId) 83public IClientProxy Clients(IReadOnlyList<string> connectionIds) 88public IClientProxy Users(IReadOnlyList<string> userIds)
Internal\HubClients.cs (10)
16public IClientProxy All { get; } 18public IClientProxy AllExcept(IReadOnlyList<string> excludedConnectionIds) 23IClientProxy IHubClients<IClientProxy>.Client(string connectionId) => Client(connectionId); 29public IClientProxy Group(string groupName) 34public IClientProxy GroupExcept(string groupName, IReadOnlyList<string> excludedConnectionIds) 39public IClientProxy Clients(IReadOnlyList<string> connectionIds) 44public IClientProxy Groups(IReadOnlyList<string> groupNames) 49public IClientProxy User(string userId) 54public IClientProxy Users(IReadOnlyList<string> userIds)
Internal\NonInvokingSingleClientProxy.cs (2)
8private readonly IClientProxy _clientProxy; 11public NonInvokingSingleClientProxy(IClientProxy clientProxy, string memberName)
Internal\TypedClientBuilder.cs (10)
17private static readonly Lazy<Func<IClientProxy, T>> _builder = new Lazy<Func<IClientProxy, T>>(GenerateClientBuilder); 23private static readonly Type[] ParameterTypes = new Type[] { typeof(IClientProxy) }; 25public static T Build(IClientProxy proxy) 36private static Func<IClientProxy, T> GenerateClientBuilder() 46return (Func<IClientProxy, T>)factoryMethod!.CreateDelegate(typeof(Func<IClientProxy, T>)); 56var proxyField = type.DefineField("_proxy", typeof(IClientProxy), FieldAttributes.Private | FieldAttributes.InitOnly); 139invokeMethod = typeof(IClientProxy).GetMethod( 140nameof(IClientProxy.SendCoreAsync), BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null,
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
TypedClientBuilderBenchmark.cs (1)
11private static readonly IClientProxy Dummy = new DummyProxy();
Microsoft.AspNetCore.SignalR.Tests (2)
HubConnectionHandlerTestUtils\Hubs.cs (2)
1345public IClientProxy Caller { get; private set; } 1347public void SetCaller(IClientProxy caller)