1 interface inheriting from IClientProxy
Microsoft.AspNetCore.SignalR.Core (1)
ISingleClientProxy.cs (1)
9
public interface ISingleClientProxy :
IClientProxy
10 implementations of IClientProxy
Microsoft.AspNetCore.SignalR.Core (8)
Internal\Proxies.cs (8)
6
internal sealed class UserProxy<THub> :
IClientProxy
where THub : Hub
25
internal sealed class MultipleUserProxy<THub> :
IClientProxy
where THub : Hub
42
internal sealed class GroupProxy<THub> :
IClientProxy
where THub : Hub
61
internal sealed class MultipleGroupProxy<THub> :
IClientProxy
where THub : Hub
78
internal sealed class GroupExceptProxy<THub> :
IClientProxy
where THub : Hub
99
internal sealed class AllClientProxy<THub> :
IClientProxy
where THub : Hub
114
internal sealed class AllClientsExceptProxy<THub> :
IClientProxy
where THub : Hub
131
internal sealed class MultipleClientProxy<THub> :
IClientProxy
where THub : Hub
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
TypedClientBuilderBenchmark.cs (1)
21
private sealed class DummyProxy :
IClientProxy
Microsoft.AspNetCore.SignalR.Tests (1)
Internal\TypedClientBuilderTests.cs (1)
342
private class MockProxy :
IClientProxy
84 references to IClientProxy
Microsoft.AspNetCore.Components.Server (2)
Circuits\CircuitHost.cs (1)
730
private async Task TryNotifyClientErrorAsync(
IClientProxy
client, string error, Exception exception = null)
ComponentHub.cs (1)
582
private static Task NotifyClientError(
IClientProxy
client, string error) => client.SendAsync("JS.Error", error);
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>
22
public 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>
37
public 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>
53
public 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>
70
public 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>
88
public 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>
107
public 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>
127
public 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>
148
public 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>
170
public 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>
193
public 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>
217
public 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)
11
public interface IHubCallerClients : IHubCallerClients<
IClientProxy
>
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 (2)
11
public interface IHubClients : IHubClients<
IClientProxy
>
18
new ISingleClientProxy Client(string connectionId) => new NonInvokingSingleClientProxy(((IHubClients<
IClientProxy
>)this).Client(connectionId), "IHubClients.Client(string connectionId)");
Internal\DynamicClientProxy.cs (2)
11
private readonly
IClientProxy
_clientProxy;
14
public DynamicClientProxy(
IClientProxy
clientProxy)
Internal\HubCallerClients.cs (14)
26
IClientProxy
IHubCallerClients<
IClientProxy
>.Caller => Caller;
39
public
IClientProxy
Others => _hubClients.AllExcept(new[] { _connectionId });
41
public
IClientProxy
All => _hubClients.All;
43
public
IClientProxy
AllExcept(IReadOnlyList<string> excludedConnectionIds)
48
IClientProxy
IHubClients<
IClientProxy
>.Client(string connectionId) => Client(connectionId);
58
public
IClientProxy
Group(string groupName)
63
public
IClientProxy
Groups(IReadOnlyList<string> groupNames)
68
public
IClientProxy
OthersInGroup(string groupName)
73
public
IClientProxy
GroupExcept(string groupName, IReadOnlyList<string> excludedConnectionIds)
78
public
IClientProxy
User(string userId)
83
public
IClientProxy
Clients(IReadOnlyList<string> connectionIds)
88
public
IClientProxy
Users(IReadOnlyList<string> userIds)
Internal\HubClients.cs (10)
16
public
IClientProxy
All { get; }
18
public
IClientProxy
AllExcept(IReadOnlyList<string> excludedConnectionIds)
23
IClientProxy
IHubClients<
IClientProxy
>.Client(string connectionId) => Client(connectionId);
29
public
IClientProxy
Group(string groupName)
34
public
IClientProxy
GroupExcept(string groupName, IReadOnlyList<string> excludedConnectionIds)
39
public
IClientProxy
Clients(IReadOnlyList<string> connectionIds)
44
public
IClientProxy
Groups(IReadOnlyList<string> groupNames)
49
public
IClientProxy
User(string userId)
54
public
IClientProxy
Users(IReadOnlyList<string> userIds)
Internal\NonInvokingSingleClientProxy.cs (2)
8
private readonly
IClientProxy
_clientProxy;
11
public NonInvokingSingleClientProxy(
IClientProxy
clientProxy, string memberName)
Internal\TypedClientBuilder.cs (10)
17
private static readonly Lazy<Func<
IClientProxy
, T>> _builder = new Lazy<Func<
IClientProxy
, T>>(GenerateClientBuilder);
23
private static readonly Type[] ParameterTypes = new Type[] { typeof(
IClientProxy
) };
25
public static T Build(
IClientProxy
proxy)
36
private static Func<
IClientProxy
, T> GenerateClientBuilder()
46
return (Func<
IClientProxy
, T>)factoryMethod!.CreateDelegate(typeof(Func<
IClientProxy
, T>));
56
var proxyField = type.DefineField("_proxy", typeof(
IClientProxy
), FieldAttributes.Private | FieldAttributes.InitOnly);
139
invokeMethod = typeof(
IClientProxy
).GetMethod(
140
nameof(
IClientProxy
.SendCoreAsync), BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null,
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
TypedClientBuilderBenchmark.cs (1)
11
private static readonly
IClientProxy
Dummy = new DummyProxy();
Microsoft.AspNetCore.SignalR.Tests (2)
HubConnectionHandlerTestUtils\Hubs.cs (2)
1345
public
IClientProxy
Caller { get; private set; }
1347
public void SetCaller(
IClientProxy
caller)