573 references to ConfigureAwait
Aspire.Confluent.Kafka (1)
Aspire.Dashboard (5)
Aspire.EndToEnd.Tests (1)
Aspire.Hosting (16)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Nats (1)
Aspire.Hosting.Testing (1)
Aspire.NATS.Net (1)
Aspire.Templates.Tests (1)
GenerateDocumentationAndConfigFiles (1)
InMemory.FunctionalTests (1)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
Microsoft.AspNetCore.Hosting (3)
Microsoft.AspNetCore.Http.Connections (5)
Microsoft.AspNetCore.Http.Connections.Client (5)
Microsoft.AspNetCore.Mvc.Testing (2)
Microsoft.AspNetCore.OpenApi (2)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.SignalR.Client.Core (5)
Microsoft.AspNetCore.SignalR.Client.Tests (2)
Microsoft.AspNetCore.SignalR.Common (2)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (2)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (2)
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Microsoft.CodeAnalysis.CodeStyle (4)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
Microsoft.CodeAnalysis.CSharp.Features (5)
Microsoft.CodeAnalysis.EditorFeatures (12)
Microsoft.CodeAnalysis.Features (34)
Microsoft.CodeAnalysis.InteractiveHost (3)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (18)
Workspaces\LspWorkspaceManager.cs (10)
98await change(mutatingWorkspace, documentId).ConfigureAwait(false);
126await TryOpenDocumentsInMutatingWorkspaceAsync(uri).ConfigureAwait(false);
136workspace.TryOnDocumentOpenedAsync(documentId, documentText.Container, isCurrentContext: false, cancellationToken)).ConfigureAwait(false);
161await TryCloseDocumentsInMutatingWorkspaceAsync(uri).ConfigureAwait(false);
179await workspace.TryOnDocumentClosedAsync(documentId, cancellationToken).ConfigureAwait(false);
180}).ConfigureAwait(false);
345await TryOpenAndEditDocumentsInMutatingWorkspaceAsync(workspace).ConfigureAwait(false);
419documentId, sourceText.Container, isCurrentContext: false, cancellationToken).ConfigureAwait(false);
427await mutatingWorkspace.UpdateTextIfPresentAsync(documentId, sourceText, cancellationToken).ConfigureAwait(false);
428}).ConfigureAwait(false);
Microsoft.CodeAnalysis.Remote.ServiceHub (13)
Microsoft.CodeAnalysis.Remote.Workspaces (16)
BrokeredServiceConnection.cs (7)
103await invocation(rental.Service, cancellationToken).ConfigureAwait(false);
136await invocation(rental.Service, _callbackHandle.Id, cancellationToken).ConfigureAwait(false);
170await invocation(rental.Service, scope.SolutionChecksum, cancellationToken).ConfigureAwait(false);
203await invocation(rental.Service, scope.SolutionChecksum, cancellationToken).ConfigureAwait(false);
238await invocation(rental.Service, scope.SolutionChecksum, _callbackHandle.Id, cancellationToken).ConfigureAwait(false);
276await invocation(rental.Service, scope.SolutionChecksum, _callbackHandle.Id, cancellationToken).ConfigureAwait(false);
313await invocation(rental.Service, scope1.SolutionChecksum, scope2.SolutionChecksum, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Threading.Package (3)
Microsoft.CodeAnalysis.Workspaces (28)
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
Microsoft.CommonLanguageServerProtocol.Framework.Package (3)
Microsoft.DotNet.Helix.Client (1)
Microsoft.Extensions.AI.Evaluation (1)
Microsoft.Extensions.AI.Evaluation.Console (4)
Microsoft.Extensions.AI.Evaluation.Quality (2)
Microsoft.Extensions.AI.Evaluation.Safety (1)
Microsoft.Extensions.AI.Ollama (3)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.Caching.Abstractions (2)
Microsoft.Extensions.Caching.Hybrid (3)
Microsoft.Extensions.DependencyInjection (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.Extensions.Hosting (3)
Microsoft.Extensions.Hosting.Abstractions (1)
Microsoft.Extensions.Http (2)
Microsoft.Extensions.Http.Diagnostics (4)
Logging\Internal\HttpClientLogger.cs (2)
118=> await LogResponseAsync(context, request, response, null, elapsed, cancellationToken).ConfigureAwait(false);
127=> await LogResponseAsync(context, request, response, exception, elapsed, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Logging.Console (1)
Microsoft.VisualBasic.Forms (2)
Microsoft.VisualStudio.LanguageServices (8)
Shared (1)
Sockets.BindTests (1)
Sockets.FunctionalTests (1)
System.Data.Common (6)
System.Formats.Tar (23)
System.IO.Compression (51)
System\IO\Compression\DeflateZLib\DeflateStream.cs (11)
224await WriteDeflaterOutputAsync(cancellationToken).ConfigureAwait(false);
234await _stream.WriteAsync(new ReadOnlyMemory<byte>(_buffer, 0, compressedBytes), cancellationToken).ConfigureAwait(false);
674await WriteDeflaterOutputAsync(default).ConfigureAwait(false);
684await _stream.WriteAsync(new ReadOnlyMemory<byte>(_buffer, 0, compressedBytes)).ConfigureAwait(false);
759await PurgeBuffersAsync().ConfigureAwait(false);
771await stream.DisposeAsync().ConfigureAwait(false);
846await WriteDeflaterOutputAsync(cancellationToken).ConfigureAwait(false);
852await WriteDeflaterOutputAsync(cancellationToken).ConfigureAwait(false);
874await _stream.WriteAsync(new ReadOnlyMemory<byte>(_buffer, 0, compressedBytes), cancellationToken).ConfigureAwait(false);
943await _destination.WriteAsync(new ReadOnlyMemory<byte>(_arrayPoolBuffer, 0, bytesRead), _cancellationToken).ConfigureAwait(false);
1040await _destination.WriteAsync(new ReadOnlyMemory<byte>(_arrayPoolBuffer, 0, bytesRead), cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipArchive.Async.cs (10)
121await extraTempStream.DisposeAsync().ConfigureAwait(false);
128public async ValueTask DisposeAsync() => await DisposeAsyncCore().ConfigureAwait(false);
144await WriteFileAsync().ConfigureAwait(false);
160await _archiveStream.DisposeAsync().ConfigureAwait(false);
163await _backingStream.DisposeAsync().ConfigureAwait(false);
173await _archiveStream.DisposeAsync().ConfigureAwait(false);
255await TryReadZip64EndOfCentralDirectoryAsync(eocd, eocdStart, cancellationToken).ConfigureAwait(false);
386await WriteArchiveEpilogueAsync(plannedCentralDirectoryPosition, sizeOfCentralDirectory, archiveEpilogueRequiresUpdate, cancellationToken).ConfigureAwait(false);
411await Zip64EndOfCentralDirectoryRecord.WriteBlockAsync(_archiveStream, _entries.Count, startOfCentralDirectory, sizeOfCentralDirectory, cancellationToken).ConfigureAwait(false);
412await Zip64EndOfCentralDirectoryLocator.WriteBlockAsync(_archiveStream, zip64EOCDRecordStart, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipArchiveEntry.Async.cs (16)
82await _storedUncompressedData.DisposeAsync().ConfigureAwait(false);
128await _archive.ArchiveStream.WriteAsync(cdStaticHeader, cancellationToken).ConfigureAwait(false);
129await _archive.ArchiveStream.WriteAsync(_storedEntryNameBytes, cancellationToken).ConfigureAwait(false);
134await zip64ExtraField.WriteBlockAsync(_archive.ArchiveStream, cancellationToken).ConfigureAwait(false);
142await _archive.ArchiveStream.WriteAsync(_fileComment, cancellationToken).ConfigureAwait(false);
271await _archive.ArchiveStream.WriteAsync(lfStaticHeader, cancellationToken).ConfigureAwait(false);
272await _archive.ArchiveStream.WriteAsync(_storedEntryNameBytes, cancellationToken).ConfigureAwait(false);
277await zip64ExtraField.WriteBlockAsync(_archive.ArchiveStream, cancellationToken).ConfigureAwait(false);
303await _storedUncompressedData.DisposeAsync().ConfigureAwait(false);
323await _archive.ArchiveStream.WriteAsync(compressedBytes, cancellationToken).ConfigureAwait(false);
363await _archive.ArchiveStream.WriteAsync(writeBuffer.AsMemory(0, MetadataBufferLength), cancellationToken).ConfigureAwait(false);
369await _archive.ArchiveStream.WriteAsync(writeBuffer.AsMemory(0, CrcAndSizesBufferLength), cancellationToken).ConfigureAwait(false);
380await _archive.ArchiveStream.WriteAsync(writeBuffer.AsMemory(0, Zip64SizesBufferLength), cancellationToken).ConfigureAwait(false);
392await _archive.ArchiveStream.WriteAsync(writeBuffer.AsMemory(0, Zip64DataDescriptorCrcAndSizesBufferLength), cancellationToken).ConfigureAwait(false);
408await _storedUncompressedData.DisposeAsync().ConfigureAwait(false);
419await _outstandingWriteStream.DisposeAsync().ConfigureAwait(false);
System.IO.Compression.Brotli (4)
System.IO.Compression.ZipFile (1)
System.IO.Pipelines (5)
System.Net.Http (83)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (17)
123await _stream.DisposeAsync().ConfigureAwait(false);
172await FlushSendBufferAsync(endStream: _request.Content == null, _requestBodyCancellationSource.Token).ConfigureAwait(false);
248await DrainContentLength0Frames(_requestBodyCancellationSource.Token).ConfigureAwait(false);
374await DisposeAsync().ConfigureAwait(false);
402await ReadHeadersAsync(payloadLength, cancellationToken).ConfigureAwait(false);
440await timer.DisposeAsync().ConfigureAwait(false);
473await FlushSendBufferAsync(endStream: true, cancellationToken).ConfigureAwait(false);
518await _stream.WriteAsync(_sendBuffer.ActiveMemory, cancellationToken).ConfigureAwait(false);
519await _stream.WriteAsync(buffer, cancellationToken).ConfigureAwait(false);
528await _stream.WriteAsync(buffer, cancellationToken).ConfigureAwait(false);
537await _stream.WriteAsync(_sendBuffer.ActiveMemory, cancellationToken).ConfigureAwait(false);
538await _stream.WriteAsync(buffer, cancellationToken).ConfigureAwait(false);
565await ReadHeadersAsync(payloadLength, cancellationToken).ConfigureAwait(false);
903await SkipUnknownPayloadAsync(payloadLength, cancellationToken).ConfigureAwait(false);
1366await ReadHeadersAsync(payloadLength, cancellationToken).ConfigureAwait(false);
1457await stream.DisposeAsync().ConfigureAwait(false);
1461await base.DisposeAsync().ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (19)
563await FlushAsync(async).ConfigureAwait(false);
575await SendRequestContentAsync(request, CreateRequestContentStream(request), async, cancellationToken).ConfigureAwait(false);
582await FlushAsync(async).ConfigureAwait(false);
645await InitialFillAsync(async).ConfigureAwait(false);
667await FillForHeadersAsync(async).ConfigureAwait(false);
703await FillForHeadersAsync(async).ConfigureAwait(false);
709await FillForHeadersAsync(async).ConfigureAwait(false);
716await FillForHeadersAsync(async).ConfigureAwait(false);
987await FlushAsync(async).ConfigureAwait(false);
1011await SendRequestContentAsync(request, stream, async, cancellationToken).ConfigureAwait(false);
1452await flushTask.ConfigureAwait(false);
1460await WriteToStreamAsync(source, async: true).ConfigureAwait(false);
1514await FlushAsync(async).ConfigureAwait(false);
1515await WriteToStreamAsync(source, async).ConfigureAwait(false);
1679await FillAsync(async).ConfigureAwait(false);
1900await CopyFromBufferAsync(destination, async, remaining, cancellationToken).ConfigureAwait(false);
1926await CopyFromBufferAsync(destination, async, remaining, cancellationToken).ConfigureAwait(false);
1949await FillAsync(async).ConfigureAwait(false);
1952await CopyFromBufferAsync(destination, async, remaining, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (12)
42await EstablishSocks5TunnelAsync(stream, host, port, credentials, async).ConfigureAwait(false);
46await EstablishSocks4TunnelAsync(stream, isVersion4a: true, host, port, credentials, async, cancellationToken).ConfigureAwait(false);
50await EstablishSocks4TunnelAsync(stream, isVersion4a: false, host, port, credentials, async, cancellationToken).ConfigureAwait(false);
89await WriteAsync(stream, buffer.AsMemory(0, buffer[1] + 2), async).ConfigureAwait(false);
96await ReadToFillAsync(stream, buffer.AsMemory(0, 2), async).ConfigureAwait(false);
126await WriteAsync(stream, buffer.AsMemory(0, 3 + usernameLength + passwordLength), async).ConfigureAwait(false);
133await ReadToFillAsync(stream, buffer.AsMemory(0, 2), async).ConfigureAwait(false);
184await WriteAsync(stream, buffer.AsMemory(0, addressLength + 6), async).ConfigureAwait(false);
191await ReadToFillAsync(stream, buffer.AsMemory(0, 5), async).ConfigureAwait(false);
204await ReadToFillAsync(stream, buffer.AsMemory(0, bytesToSkip), async).ConfigureAwait(false);
294await WriteAsync(stream, buffer.AsMemory(0, totalLength), async).ConfigureAwait(false);
300await ReadToFillAsync(stream, buffer.AsMemory(0, 8), async).ConfigureAwait(false);
System.Net.Http.Json (1)
System.Net.HttpListener (1)
System.Net.Mail (9)
System.Net.Quic (18)
System.Net.Requests (2)
System.Net.Security (15)
System\Net\Security\SslStream.IO.cs (9)
230await TIOAdapter.WriteAsync(InnerStream, token.AsMemory(), cancellationToken).ConfigureAwait(false);
254await TIOAdapter.WriteAsync(InnerStream, token.AsMemory(), cancellationToken).ConfigureAwait(false);
306await TIOAdapter.WriteAsync(InnerStream, new ReadOnlyMemory<byte>(token.Payload!, 0, token.Size), cancellationToken).ConfigureAwait(false);
350await TIOAdapter.WriteAsync(InnerStream, payload, cancellationToken).ConfigureAwait(false);
618await WriteSingleChunk<TIOAdapter>(buffer.Slice(0, chunkBytes), cancellationToken).ConfigureAwait(false);
682await WriteSingleChunk<TIOAdapter>(buffer, cancellationToken).ConfigureAwait(false);
686await TIOAdapter.WriteAsync(InnerStream, token.AsMemory(), cancellationToken).ConfigureAwait(false);
703await writeTask.ConfigureAwait(false);
980await t.ConfigureAwait(false);
System.Net.ServerSentEvents (1)
System.Net.Sockets (4)
System.Net.WebClient (5)
System.Net.WebSockets (20)
System\Net\WebSockets\ManagedWebSocket.cs (19)
432await SendCloseFrameAsync(closeStatus, statusDescription, cancellationToken).ConfigureAwait(false);
573await writeTask.ConfigureAwait(false);
615await _stream.WriteAsync(new ReadOnlyMemory<byte>(_sendBuffer, 0, sendBytes), cancellationToken).ConfigureAwait(false);
835await EnsureBufferContainsAsync(2, cancellationToken).ConfigureAwait(false);
847await EnsureBufferContainsAsync(minNeeded, cancellationToken).ConfigureAwait(false);
854await CloseWithReceiveErrorAndThrowAsync(WebSocketCloseStatus.ProtocolError, WebSocketError.Faulted, headerErrorMessage).ConfigureAwait(false);
877await HandleReceivedPingPongAsync(header, cancellationToken).ConfigureAwait(false);
882await HandleReceivedCloseAsync(header, cancellationToken).ConfigureAwait(false);
988await CloseWithReceiveErrorAndThrowAsync(WebSocketCloseStatus.InvalidPayloadData, WebSocketError.Faulted).ConfigureAwait(false);
1093await CloseWithReceiveErrorAndThrowAsync(WebSocketCloseStatus.ProtocolError, WebSocketError.Faulted).ConfigureAwait(false);
1099await EnsureBufferContainsAsync((int)header.PayloadLength, cancellationToken).ConfigureAwait(false);
1110await CloseWithReceiveErrorAndThrowAsync(WebSocketCloseStatus.ProtocolError, WebSocketError.Faulted).ConfigureAwait(false);
1121await CloseWithReceiveErrorAndThrowAsync(WebSocketCloseStatus.ProtocolError, WebSocketError.Faulted, innerException: exc).ConfigureAwait(false);
1133await WaitForServerToCloseConnectionAsync(cancellationToken).ConfigureAwait(false);
1184await EnsureBufferContainsAsync((int)header.PayloadLength, cancellationToken).ConfigureAwait(false);
1207cancellationToken).ConfigureAwait(false);
1433await SendCloseFrameAsync(closeStatus, statusDescription, cancellationToken).ConfigureAwait(false);
1544await SendFrameAsync(MessageOpcode.Close, endOfMessage: true, disableCompression: true, new Memory<byte>(buffer, 0, count), cancellationToken).ConfigureAwait(false);
1572await WaitForServerToCloseConnectionAsync(cancellationToken).ConfigureAwait(false);
System.Private.CoreLib (34)
src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (10)
250await _stream.DisposeAsync().ConfigureAwait(false);
322await FlushWriteAsync(cancellationToken).ConfigureAwait(false);
425await _stream.WriteAsync(new ReadOnlyMemory<byte>(_buffer, 0, _writePos), cancellationToken).ConfigureAwait(false);
705await FlushWriteAsync(cancellationToken).ConfigureAwait(false); // no Begin-End read version for Flush. Use Async.
1098await _stream.WriteAsync(new ReadOnlyMemory<byte>(_buffer, 0, _writePos), cancellationToken).ConfigureAwait(false);
1121await _stream.WriteAsync(new ReadOnlyMemory<byte>(_buffer, 0, totalUserBytes), cancellationToken).ConfigureAwait(false);
1126await _stream.WriteAsync(new ReadOnlyMemory<byte>(_buffer, 0, _writePos), cancellationToken).ConfigureAwait(false);
1131await _stream.WriteAsync(buffer, cancellationToken).ConfigureAwait(false);
1299await destination.WriteAsync(new ReadOnlyMemory<byte>(_buffer, _readPos, readBytes), cancellationToken).ConfigureAwait(false);
1305await FlushWriteAsync(cancellationToken).ConfigureAwait(false);
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (4)
860await RandomAccess.WriteAtOffsetAsync(fileHandle, bytes, fileOffset, cancellationToken).ConfigureAwait(false);
1286await RandomAccess.WriteAtOffsetAsync(sfh, bytes, 0, cancellationToken).ConfigureAwait(false);
1572await RandomAccess.WriteAtOffsetAsync(fileHandle, preamble, fileOffset, cancellationToken).ConfigureAwait(false);
1598await RandomAccess.WriteAtOffsetAsync(fileHandle, toStore, fileOffset, cancellationToken).ConfigureAwait(false);
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (8)
103await _strategy.DisposeAsync().ConfigureAwait(false);
433await _strategy.WriteAsync(new ReadOnlyMemory<byte>(_buffer, 0, _writePos), cancellationToken).ConfigureAwait(false);
665await _strategy.WriteAsync(source, cancellationToken).ConfigureAwait(false);
714await _strategy.WriteAsync(new ReadOnlyMemory<byte>(_buffer, 0, _writePos), cancellationToken).ConfigureAwait(false);
722await _strategy.WriteAsync(source, cancellationToken).ConfigureAwait(false);
802await _strategy.WriteAsync(new ReadOnlyMemory<byte>(_buffer, 0, _writePos), cancellationToken).ConfigureAwait(false);
855await destination.WriteAsync(new ReadOnlyMemory<byte>(_buffer, _readPos, readBytes), cancellationToken).ConfigureAwait(false);
861await _strategy.WriteAsync(new ReadOnlyMemory<byte>(_buffer, 0, _writePos), cancellationToken).ConfigureAwait(false);
System.Private.Xml (9)
System.Security.Cryptography (9)
System\Security\Cryptography\CryptoStream.cs (9)
149await _stream.WriteAsync(new ReadOnlyMemory<byte>(finalBytes), cancellationToken).ConfigureAwait(false);
162await innerCryptoStream.FlushFinalBlockAsync(useAsync, cancellationToken).ConfigureAwait(false);
482await WriteAsyncCore(buffer, cancellationToken, useAsync: true).ConfigureAwait(false);
573await _stream.WriteAsync(new ReadOnlyMemory<byte>(_outputBuffer, 0, numOutputBytes), cancellationToken).ConfigureAwait(false);
602await _stream.WriteAsync(new ReadOnlyMemory<byte>(tempOutputBuffer, 0, numOutputBytes), cancellationToken).ConfigureAwait(false);
629await _stream.WriteAsync(new ReadOnlyMemory<byte>(_outputBuffer, 0, numOutputBytes), cancellationToken).ConfigureAwait(false);
731await destination.WriteAsync(rentedBuffer.AsMemory(0, bytesRead), cancellationToken).ConfigureAwait(false);
814await FlushFinalBlockAsync(useAsync: true, default).ConfigureAwait(false);
819await _stream.DisposeAsync().ConfigureAwait(false);
System.Text.Json (6)
System.Threading.RateLimiting (4)
System.Windows.Forms (1)