69 references to StartAsync
ClientSample (1)
RawSample.cs (1)
47await connection.StartAsync();
Microsoft.AspNetCore.Http.Connections.Client (2)
HttpConnectionFactory.cs (1)
66await connection.StartAsync(cancellationToken).ConfigureAwait(false);
HttpConnectionOptions.cs (1)
248/// Gets or sets the default <see cref="TransferFormat" /> to use if <see cref="HttpConnection.StartAsync(CancellationToken)"/>
Microsoft.AspNetCore.Http.Connections.Tests (5)
HttpConnectionDispatcherTests.cs (5)
3276await connection.StartAsync(); 3338await connection.StartAsync(); 3438await connection.StartAsync(); 3477await connection.StartAsync(); 3551await connection.StartAsync();
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubConnectionTests.cs (1)
82await connection.StartAsync().ConfigureAwait(false);
Microsoft.AspNetCore.SignalR.Client.Tests (49)
HttpConnectionTests.ConnectionLifecycle.cs (20)
31await connection.StartAsync().DefaultTimeout(); 32await connection.StartAsync().DefaultTimeout(); 46var firstStart = connection.StartAsync(); 48var secondStart = connection.StartAsync(); 66await connection.StartAsync().DefaultTimeout(); 70async () => await connection.StartAsync()).DefaultTimeout(); 124await connection.StartAsync().DefaultTimeout(); 157var ex = await Assert.ThrowsAsync<AggregateException>(() => connection.StartAsync()).DefaultTimeout(); 201var startTask = connection.StartAsync(); 233await connection.StartAsync().DefaultTimeout(); 269await connection.StartAsync().DefaultTimeout(); 314await connection.StartAsync().DefaultTimeout(); 347() => connection.StartAsync().DefaultTimeout()); 372var startTask = connection.StartAsync(); 407var startTask = connection.StartAsync(cts.Token); 447var ex = await Assert.ThrowsAsync<AggregateException>(async () => await connection.StartAsync(cts.Token)).DefaultTimeout(); 473await Assert.ThrowsAsync<TaskCanceledException>(async () => await connection.StartAsync(new CancellationToken(canceled: true))).DefaultTimeout(); 504var ex = await Assert.ThrowsAsync<AggregateException>(async () => await connection.StartAsync()).DefaultTimeout(); 530var ex = await Assert.ThrowsAsync<AggregateException>(async () => await connection.StartAsync(cts.Token).DefaultTimeout()); 538await Assert.ThrowsAsync<ObjectDisposedException>(() => connection.StartAsync());
HttpConnectionTests.cs (3)
105await connection.StartAsync().DefaultTimeout(); 151await connection.StartAsync().DefaultTimeout(); 193await connection.StartAsync().DefaultTimeout();
HttpConnectionTests.Negotiate.cs (13)
86await connection.StartAsync().DefaultTimeout(); 121await connection.StartAsync().DefaultTimeout(); 158await connection.StartAsync().DefaultTimeout(); 197await connection.StartAsync().DefaultTimeout(); 237await connection.StartAsync().DefaultTimeout(); 296await connection.StartAsync().DefaultTimeout(); 326var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => connection.StartAsync().DefaultTimeout()); 402await connection.StartAsync().DefaultTimeout(); 466await connection.StartAsync().DefaultTimeout(); 523await connection.StartAsync().DefaultTimeout(); 570await connection.StartAsync().DefaultTimeout(); 599var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => connection.StartAsync().DefaultTimeout()); 616() => connection.StartAsync().DefaultTimeout());
HttpConnectionTests.Transport.cs (13)
69await connection.StartAsync().DefaultTimeout(); 95await connection.StartAsync().DefaultTimeout(); 145await connection.StartAsync().DefaultTimeout(); 185await connection.StartAsync().DefaultTimeout(); 217await connection.StartAsync().DefaultTimeout(); 244await connection.StartAsync().DefaultTimeout(); 274await connection.StartAsync().DefaultTimeout(); 291await connection.StartAsync().DefaultTimeout(); 338await Assert.ThrowsAsync<HttpRequestException>(async () => await connection.StartAsync().DefaultTimeout()); 408await connection.StartAsync().DefaultTimeout(); 446await connection.StartAsync().DefaultTimeout(); 506await connection.StartAsync().DefaultTimeout(); 549await connection.StartAsync().DefaultTimeout();
Microsoft.AspNetCore.SignalR.Tests (11)
EndToEndTests.cs (11)
45await connection.StartAsync().DefaultTimeout(); 67await connection.StartAsync().DefaultTimeout(); 81await connection.StartAsync().DefaultTimeout(); 191await connection.StartAsync().DefaultTimeout(); 240var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => connection.StartAsync().DefaultTimeout()); 271await connection.StartAsync().DefaultTimeout(); 328await connection.StartAsync().DefaultTimeout(); 389var exception = await Assert.ThrowsAsync<HttpRequestException>(() => connection.StartAsync().DefaultTimeout()); 420await Assert.ThrowsAsync<WebSocketException>(() => connection.StartAsync().DefaultTimeout()); 446await connection.StartAsync().DefaultTimeout(); 499await connection.StartAsync().DefaultTimeout();