38 references to Build
Microsoft.AspNetCore.SignalR.Core (21)
Internal\HubClients`T.cs (9)
16
All = TypedClientBuilder<T>.
Build
(new AllClientProxy<THub>(_lifetimeManager));
23
return TypedClientBuilder<T>.
Build
(new AllClientsExceptProxy<THub>(_lifetimeManager, excludedConnectionIds));
28
return TypedClientBuilder<T>.
Build
(new SingleClientProxy<THub>(_lifetimeManager, connectionId));
33
return TypedClientBuilder<T>.
Build
(new MultipleClientProxy<THub>(_lifetimeManager, connectionIds));
38
return TypedClientBuilder<T>.
Build
(new GroupProxy<THub>(_lifetimeManager, groupName));
43
return TypedClientBuilder<T>.
Build
(new GroupExceptProxy<THub>(_lifetimeManager, groupName, excludedConnectionIds));
48
return TypedClientBuilder<T>.
Build
(new MultipleGroupProxy<THub>(_lifetimeManager, groupNames));
53
return TypedClientBuilder<T>.
Build
(new UserProxy<THub>(_lifetimeManager, userId));
58
return TypedClientBuilder<T>.
Build
(new MultipleUserProxy<THub>(_lifetimeManager, userIds));
Internal\TypedHubClients.cs (12)
18
public T Client(string connectionId) => TypedClientBuilder<T>.
Build
(_hubClients.Client(connectionId));
20
public T All => TypedClientBuilder<T>.
Build
(_hubClients.All);
22
public T Caller => TypedClientBuilder<T>.
Build
(_hubClients.Caller);
24
public T Others => TypedClientBuilder<T>.
Build
(_hubClients.Others);
26
public T AllExcept(IReadOnlyList<string> excludedConnectionIds) => TypedClientBuilder<T>.
Build
(_hubClients.AllExcept(excludedConnectionIds));
30
return TypedClientBuilder<T>.
Build
(_hubClients.Group(groupName));
35
return TypedClientBuilder<T>.
Build
(_hubClients.GroupExcept(groupName, excludedConnectionIds));
40
return TypedClientBuilder<T>.
Build
(_hubClients.Clients(connectionIds));
45
return TypedClientBuilder<T>.
Build
(_hubClients.Groups(groupNames));
50
return TypedClientBuilder<T>.
Build
(_hubClients.OthersInGroup(groupName));
55
return TypedClientBuilder<T>.
Build
(_hubClients.User(userId));
60
return TypedClientBuilder<T>.
Build
(_hubClients.Users(userIds));
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
TypedClientBuilderBenchmark.cs (1)
16
return TypedClientBuilder<ITestClient>.
Build
(Dummy);
Microsoft.AspNetCore.SignalR.Tests (16)
Internal\TypedClientBuilderTests.cs (16)
15
var typedProxy = TypedClientBuilder<ITestClient>.
Build
(clientProxy);
39
var typedProxy = TypedClientBuilder<IRenamedTestClient>.
Build
(clientProxy);
63
var typedProxy = TypedClientBuilder<IInheritedClient>.
Build
(clientProxy);
100
var typedProxy = TypedClientBuilder<ICancellationTokenMethod>.
Build
(clientProxy);
135
var ex = Assert.Throws<InvalidOperationException>(() => TypedClientBuilder<object>.
Build
(clientProxy));
143
var ex = Assert.Throws<InvalidOperationException>(() => TypedClientBuilder<ValueTask>.
Build
(clientProxy));
151
var ex = Assert.Throws<InvalidOperationException>(() => TypedClientBuilder<EventHandler>.
Build
(clientProxy));
159
var ex = Assert.Throws<InvalidOperationException>(() => TypedClientBuilder<IVoidMethodClient>.
Build
(clientProxy));
167
var ex = Assert.Throws<InvalidOperationException>(() => TypedClientBuilder<IStringMethodClient>.
Build
(clientProxy));
175
var ex = Assert.Throws<InvalidOperationException>(() => TypedClientBuilder<IOutParamMethodClient>.
Build
(clientProxy));
184
var ex = Assert.Throws<InvalidOperationException>(() => TypedClientBuilder<IRefParamMethodClient>.
Build
(clientProxy));
193
var ex = Assert.Throws<InvalidOperationException>(() => TypedClientBuilder<IPropertiesClient>.
Build
(clientProxy));
201
var ex = Assert.Throws<InvalidOperationException>(() => TypedClientBuilder<IEventsClient>.
Build
(clientProxy));
209
var typedProxy = TypedClientBuilder<ITestClient>.
Build
(clientProxy);
235
var typedProxy = TypedClientBuilder<ITestClient>.
Build
(clientProxy);
248
var typedProxy = TypedClientBuilder<ICancellationTokenMethod>.
Build
(clientProxy);