1 write to Connection
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
46
Connection
= new DefaultConnectionContext(Guid.NewGuid().ToString(), pair.Transport, pair.Application);
60 references to Connection
Microsoft.AspNetCore.SignalR.Specification.Tests (60)
HubLifetimeManagerTestBase.cs (18)
40
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
);
41
var connection2 = HubConnectionContextUtils.Create(client2.
Connection
);
71
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
);
72
var connection2 = HubConnectionContextUtils.Create(client2.
Connection
);
101
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
);
102
var connection2 = HubConnectionContextUtils.Create(client2.
Connection
);
131
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
);
132
var connection2 = HubConnectionContextUtils.Create(client2.
Connection
);
161
var connection = HubConnectionContextUtils.Create(client.
Connection
);
185
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
);
212
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
);
240
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
);
241
var connection2 = HubConnectionContextUtils.Create(client2.
Connection
);
275
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
);
296
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
);
297
var connection2 = HubConnectionContextUtils.Create(client2.
Connection
);
328
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
);
353
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
);
ScaleoutHubLifetimeManagerTests.cs (29)
52
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
);
53
var connection2 = HubConnectionContextUtils.Create(client2.
Connection
);
79
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
);
80
var connection2 = HubConnectionContextUtils.Create(client2.
Connection
);
109
var connection = HubConnectionContextUtils.Create(client.
Connection
);
133
var connection = HubConnectionContextUtils.Create(client.
Connection
);
157
var connection = HubConnectionContextUtils.Create(client.
Connection
);
183
var connection = HubConnectionContextUtils.Create(client.
Connection
);
204
var connection = HubConnectionContextUtils.Create(client.
Connection
);
225
var connection = HubConnectionContextUtils.Create(client.
Connection
);
249
var connection = HubConnectionContextUtils.Create(client.
Connection
);
276
var connection = HubConnectionContextUtils.Create(client.
Connection
);
303
var connection = HubConnectionContextUtils.Create(client.
Connection
);
334
var connection = HubConnectionContextUtils.Create(client.
Connection
);
361
var connectionMock = HubConnectionContextUtils.CreateMock(client.
Connection
);
385
var connectionMock = HubConnectionContextUtils.CreateMock(client1.
Connection
);
388
var connection2 = HubConnectionContextUtils.Create(client2.
Connection
);
420
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
, userIdentifier: "userA");
421
var connection2 = HubConnectionContextUtils.Create(client2.
Connection
, userIdentifier: "userA");
422
var connection3 = HubConnectionContextUtils.Create(client3.
Connection
, userIdentifier: "userB");
448
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
, userIdentifier: "userA");
449
var connection2 = HubConnectionContextUtils.Create(client2.
Connection
, userIdentifier: "userA");
450
var connection3 = HubConnectionContextUtils.Create(client3.
Connection
, userIdentifier: "userB");
480
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
);
511
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
);
542
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
);
564
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
);
593
var connection = HubConnectionContextUtils.Create(client.
Connection
);
643
var connection1 = HubConnectionContextUtils.Create(client1.
Connection
);
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (13)
34
public Task Connected => ((TaskCompletionSource)
Connection
.Items["ConnectedTask"]).Task;
49
Connection
.Features.Set<ITransferFormatFeature>(this);
50
Connection
.Features.Set<IConnectionHeartbeatFeature>(this);
59
Connection
.User = new ClaimsPrincipal(new ClaimsIdentity(claims));
60
Connection
.Items["ConnectedTask"] = new TaskCompletionSource();
75
await
Connection
.Application.Output.WriteAsync(GetHandshakeRequestMessage());
78
var connection = handler.OnConnectedAsync(
Connection
);
236
await
Connection
.Application.Output.WriteAsync(payload);
248
var result = await
Connection
.Application.Input.ReadAsync();
265
Connection
.Application.Input.AdvanceTo(buffer.Start);
277
if (!
Connection
.Application.Input.TryRead(out var result))
304
Connection
.Application.Input.AdvanceTo(buffer.Start);
314
Connection
.Application.Output.Complete();