31 implementations of AsyncState
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\AsyncResult.cs (1)
41public object AsyncState
http2cat (1)
src\Shared\TaskToApm.cs (1)
110public object? AsyncState { get; }
IIS.FunctionalTests (1)
src\Shared\TaskToApm.cs (1)
110public object? AsyncState { get; }
IIS.LongTests (1)
src\Shared\TaskToApm.cs (1)
110public object? AsyncState { get; }
IIS.NewHandler.FunctionalTests (1)
src\Shared\TaskToApm.cs (1)
110public object? AsyncState { get; }
IIS.NewShim.FunctionalTests (1)
src\Shared\TaskToApm.cs (1)
110public object? AsyncState { get; }
IIS.ShadowCopy.Tests (1)
src\Shared\TaskToApm.cs (1)
110public object? AsyncState { get; }
IISExpress.FunctionalTests (1)
src\Shared\TaskToApm.cs (1)
110public object? AsyncState { get; }
Microsoft.AspNetCore.HttpLogging (1)
src\Shared\TaskToApm.cs (1)
110public object? AsyncState { get; }
Microsoft.AspNetCore.OutputCaching (1)
src\Shared\TaskToApm.cs (1)
110public object? AsyncState { get; }
Microsoft.AspNetCore.ResponseCaching (1)
src\Shared\TaskToApm.cs (1)
110public object? AsyncState { get; }
Microsoft.AspNetCore.ResponseCompression (1)
src\Shared\TaskToApm.cs (1)
110public object? AsyncState { get; }
Microsoft.AspNetCore.Server.HttpSys (4)
RequestProcessing\ClientCertLoader.cs (1)
326public object? AsyncState
RequestProcessing\RequestStreamAsyncResult.cs (1)
157public object? AsyncState
RequestProcessing\ResponseStreamAsyncResult.cs (1)
313public object? AsyncState
src\Shared\TaskToApm.cs (1)
110public object? AsyncState { get; }
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\TaskToApm.cs (1)
110public object? AsyncState { get; }
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\TaskToApm.cs (1)
110public object? AsyncState { get; }
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Shared\TaskToApm.cs (1)
110public object? AsyncState { get; }
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\TaskToApm.cs (1)
110public object? AsyncState { get; }
PresentationFramework (1)
System\Windows\Documents\PageContentAsyncResult.cs (1)
76public object AsyncState
System.Net.HttpListener (3)
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (1)
77public object? AsyncState
System\Net\Managed\HttpStreamAsyncResult.cs (1)
79public object? AsyncState
System\Net\Managed\ListenerAsyncResult.Managed.cs (1)
202public object? AsyncState
System.Net.Requests (1)
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (1)
77public object? AsyncState
System.Private.CoreLib (2)
src\libraries\Common\src\System\Threading\Tasks\TaskToAsyncResult.cs (1)
146public object? AsyncState { get; }
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
1442public object? AsyncState => (m_stateFlags & (int)InternalTaskOptions.HiddenState) == 0 ? m_stateObject : null;
System.ServiceModel.Federation (1)
System\Runtime\OperationWithTimeoutAsyncResult.cs (1)
75public object AsyncState { get; }
System.Transactions.Local (1)
System\Transactions\CommittableTransaction.cs (1)
189object? IAsyncResult.AsyncState => _internalTransaction._asyncState;
System.Windows.Forms (1)
System\Windows\Forms\Control.ThreadMethodEntry.cs (1)
47public object? AsyncState => null;
UnitTests.Common (1)
MockAsyncResult.cs (1)
26public object AsyncState { get; set; }
58 references to AsyncState
dotnet-svcutil-lib (34)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\AsyncResult.cs (1)
203AsyncResult thisPtr = (AsyncResult)result.AsyncState;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChainedAsyncResult.cs (2)
56ChainedAsyncResult thisPtr = (ChainedAsyncResult)result.AsyncState; 100ChainedAsyncResult thisPtr = (ChainedAsyncResult)result.AsyncState;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CloseCollectionAsyncResult.cs (1)
88CallbackState callbackState = (CallbackState)result.AsyncState;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\OpenCollectionAsyncResult.cs (1)
51CallbackState callbackState = (CallbackState)result.AsyncState;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (3)
1699((SendAsyncResult)result.AsyncState).FinishEnsureInteractiveInit(result, false); 1763((SendAsyncResult)result.AsyncState).FinishEnsureOpen(result, false); 1847((SendAsyncResult)result.AsyncState).FinishSend(result, false);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (2)
177OperationContext.Current = asyncResult.AsyncState as OperationContext; 219OperationContext.Current = asyncResult.AsyncState as OperationContext;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
441WebSocketTransportDuplexSessionChannel thisPtr = (WebSocketTransportDuplexSessionChannel)ar.AsyncState;
FrameworkFork\System.ServiceModel\System\ServiceModel\ClientBase.cs (1)
448AsyncOperationContext context = (AsyncOperationContext)result.AsyncState;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (3)
897HttpWebRequest request = (HttpWebRequest)result.AsyncState; 1129IMetadataExchange metadataClient = (IMetadataExchange)result.AsyncState; 1258MetadataRetriever retriever = (MetadataRetriever)result.AsyncState;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\BufferedReceiveBinder.cs (1)
229BufferedReceiveBinder binder = (BufferedReceiveBinder)result.AsyncState;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelHandler.cs (3)
752((ChannelHandler)result.AsyncState).AsyncMessagePump(result); 759((ChannelHandler)result.AsyncState).AsyncMessagePump(result); 1082var state = (ContinuationState)result.AsyncState;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (1)
256IResumeMessageRpc resume = result.AsyncState as IResumeMessageRpc;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (5)
603AsyncDuplexRequest duplexRequest = result.AsyncState as AsyncDuplexRequest; 705ReplyAsyncResult thisPtr = (ReplyAsyncResult)result.AsyncState; 1190AutoCloseDuplexSessionChannel thisPtr = (AutoCloseDuplexSessionChannel)result.AsyncState; 1200AutoCloseDuplexSessionChannel thisPtr = (AutoCloseDuplexSessionChannel)result.AsyncState; 1291((AutoCloseDuplexSessionChannel)result.AsyncState).OnCloseInnerChannel(result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (1)
311DisplayInitializationUIAsyncResult outer = (DisplayInitializationUIAsyncResult)result.AsyncState;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (1)
290IResumeMessageRpc resume = result.AsyncState as IResumeMessageRpc;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ListenerHandler.cs (3)
147ListenerHandler listenerHandler = (ListenerHandler)result.AsyncState; 205CloseChannelState state = (CloseChannelState)result.AsyncState; 253CloseChannelState state = (CloseChannelState)result.AsyncState;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (2)
420SerializeBodyContentsAsyncResult thisPtr = (SerializeBodyContentsAsyncResult)result.AsyncState; 773OnWriteBodyContentsAsyncResult thisPtr = (OnWriteBodyContentsAsyncResult)result.AsyncState;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
115SerializeAsyncResult thisPtr = (SerializeAsyncResult)result.AsyncState;
FrameworkFork\System.ServiceModel\System\ServiceModel\InstanceContext.cs (1)
320Fx.Assert(object.ReferenceEquals(this, result.AsyncState), "AsyncState should be this");
Microsoft.Svcutil.NamedPipeMetadataImporter (1)
NamedPipeMetadataImporter.cs (1)
80if (result.AsyncState is IMetadataExchange metadataClient)
PresentationCore (2)
System\Windows\Media\Imaging\BitmapDownload.cs (2)
234QueueEntry entry = (QueueEntry)result.AsyncState; 260QueueEntry entry = (QueueEntry)result.AsyncState;
PresentationFramework (2)
System\Windows\Navigation\NavigationService.cs (2)
2750Dispatcher callbackDispatcher = ((RequestState)ar.AsyncState).CallbackDispatcher; 2793RequestState requestState = (RequestState)ar.AsyncState;
System.Net.HttpListener (5)
System\Net\HttpListener.cs (1)
294iar => ((HttpListener)iar!.AsyncState!).EndGetContext(iar),
System\Net\HttpListenerRequest.cs (1)
258iar => ((HttpListenerRequest)iar.AsyncState!).EndGetClientCertificate(iar),
System\Net\Managed\ChunkedInputStream.cs (1)
117ReadBufferState rb = (ReadBufferState)base_ares.AsyncState!;
System\Net\Managed\HttpConnection.cs (1)
245cnc = (HttpConnection)ares.AsyncState!;
System\Net\Managed\HttpListenerResponse.Managed.cs (1)
138var thisRef = (HttpListenerResponse)iar.AsyncState!;
System.Net.Requests (8)
System\Net\CommandStream.cs (2)
406ReceiveState state = (ReceiveState)asyncResult.AsyncState!; 437CommandStream connection = (CommandStream)asyncResult.AsyncState!;
System\Net\FtpControlStream.cs (3)
107FtpControlStream connection = (FtpControlStream)asyncResult.AsyncState!; 135FtpControlStream connection = (FtpControlStream)asyncResult.AsyncState!; 150FtpControlStream connection = (FtpControlStream)asyncResult.AsyncState!;
System\Net\FtpDataStream.cs (1)
250LazyAsyncResult userResult = (LazyAsyncResult)ar.AsyncState!;
System\Net\WebRequest.cs (2)
525iar => ((WebRequest)iar.AsyncState!).EndGetRequestStream(iar), 536iar => ((WebRequest)iar.AsyncState!).EndGetResponse(iar),
System.Net.WebClient (2)
src\libraries\Common\src\System\Threading\Tasks\BeginEndAwaitableAdapter.cs (2)
15Debug.Assert(asyncResult.AsyncState is BeginEndAwaitableAdapter); 17var adapter = (BeginEndAwaitableAdapter)asyncResult.AsyncState;
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\FutureFactory.cs (1)
1256var promise = asyncResult.AsyncState as FromAsyncTrimPromise<TInstance>;
System.ServiceModel.Federation (1)
System\Runtime\OperationWithTimeoutAsyncResult.cs (1)
216AsyncResult thisPtr = (AsyncResult)result.AsyncState;
System.Windows.Forms (2)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (2)
656WebRequest req = (WebRequest)result.AsyncState!; 688Stream responseStream = (Stream)result.AsyncState!;