2 writes to Application
Microsoft.AspNetCore.Connections.Abstractions (1)
DefaultConnectionContext.cs (1)
68
Application
= application;
Microsoft.AspNetCore.SignalR.Tests (1)
HubConnectionHandlerTests.cs (1)
5292
connection.
Application
= applicationToTransport;
51 references to Application
Microsoft.AspNetCore.Connections.Abstractions (3)
DefaultConnectionContext.cs (3)
31
/// The caller is expected to set the <see cref="Transport"/> and <see cref="
Application
"/> pipes manually.
40
/// The caller is expected to set the <see cref="Transport"/> and <see cref="
Application
"/> pipes manually.
63
/// <param name="application">The <see cref="
Application
"/>.</param>
Microsoft.AspNetCore.Http.Connections.Tests (9)
LongPollingTests.cs (4)
30
var poll = new LongPollingServerTransport(CancellationToken.None, connection.
Application
.Input, LoggerFactory);
50
var poll = new LongPollingServerTransport(timeoutToken, connection.
Application
.Input, LoggerFactory);
71
var poll = new LongPollingServerTransport(CancellationToken.None, connection.
Application
.Input, LoggerFactory);
94
var poll = new LongPollingServerTransport(CancellationToken.None, connection.
Application
.Input, LoggerFactory);
ServerSentEventsTests.cs (5)
28
var sse = new ServerSentEventsServerTransport(connection.
Application
.Input, connectionId: string.Empty, LoggerFactory);
51
var sse = new ServerSentEventsServerTransport(connection.
Application
.Input, connectionId: connection.ConnectionId, LoggerFactory);
72
var sse = new ServerSentEventsServerTransport(connection.
Application
.Input, connectionId: string.Empty, LoggerFactory);
94
var sse = new ServerSentEventsServerTransport(connection.
Application
.Input, connectionId: string.Empty, LoggerFactory);
120
var sse = new ServerSentEventsServerTransport(connection.
Application
.Input, connectionId: string.Empty, LoggerFactory);
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
BroadcastBenchmark.cs (1)
55
_ = ConsumeAsync(connection.
Application
);
Microsoft.AspNetCore.SignalR.Specification.Tests (7)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (7)
75
await Connection.
Application
.Output.WriteAsync(GetHandshakeRequestMessage());
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();
Microsoft.AspNetCore.SignalR.Tests (24)
HubConnectionHandlerTests.cs (24)
354
await client.Connection.
Application
.Output.WriteAsync(part1);
358
await client.Connection.
Application
.Output.WriteAsync(part2);
362
await client.Connection.
Application
.Output.WriteAsync(part3);
395
await client.Connection.
Application
.Output.WriteAsync(part1);
399
await client.Connection.
Application
.Output.WriteAsync(part2);
403
await client.Connection.
Application
.Output.WriteAsync(part3);
436
await client.Connection.
Application
.Output.WriteAsync(payload);
491
await client.Connection.
Application
.Output.WriteAsync(payload);
520
await client.Connection.
Application
.Output.WriteAsync(payload.AsMemory(0, payload.Length / 2));
521
await client.Connection.
Application
.Output.WriteAsync(payload.AsMemory(payload.Length / 2));
554
client.Connection.
Application
.Output.Write(payload1);
555
client.Connection.
Application
.Output.Write(payload2);
556
client.Connection.
Application
.Output.Write(payload3);
557
await client.Connection.
Application
.Output.FlushAsync();
605
client.Connection.
Application
.Output.Write(payload1);
606
client.Connection.
Application
.Output.Write(payload2);
607
client.Connection.
Application
.Output.Write(payload3);
608
await client.Connection.
Application
.Output.FlushAsync();
669
await client.Connection.
Application
.Output.WriteAsync(payload).DefaultTimeout();
673
client.Connection.
Application
.Output.Complete();
3566
await client.Connection.
Application
.Output.WriteAsync(Encoding.UTF8.GetBytes(new[] { '{' })).DefaultTimeout();
3569
client.Connection.
Application
.Output.Complete();
5285
var prevPipe = connection.
Application
.Input;
5290
var applicationToTransport = new DuplexPipe(input.Reader, connection.
Application
.Output);
Microsoft.AspNetCore.SignalR.Tests.Utils (7)
TestClient.cs (7)
75
await Connection.
Application
.Output.WriteAsync(GetHandshakeRequestMessage());
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();