5 implementations of 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
49 references to ISingleClientProxy
Microsoft.AspNetCore.Components.Server.Tests (2)
Circuits\ComponentHubTest.cs (2)
103
private static (Mock<
ISingleClientProxy
>, ComponentHub) InitializeComponentHub()
130
var mockClientProxy = new Mock<
ISingleClientProxy
>();
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;