31 implementations of IAsyncResult
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\AsyncResult.cs (1)
14internal abstract class AsyncResult : IAsyncResult
http2cat (1)
src\Shared\TaskToApm.cs (1)
66internal sealed class TaskAsyncResult : IAsyncResult
IIS.FunctionalTests (1)
src\Shared\TaskToApm.cs (1)
66internal sealed class TaskAsyncResult : IAsyncResult
IIS.LongTests (1)
src\Shared\TaskToApm.cs (1)
66internal sealed class TaskAsyncResult : IAsyncResult
IIS.NewHandler.FunctionalTests (1)
src\Shared\TaskToApm.cs (1)
66internal sealed class TaskAsyncResult : IAsyncResult
IIS.NewShim.FunctionalTests (1)
src\Shared\TaskToApm.cs (1)
66internal sealed class TaskAsyncResult : IAsyncResult
IIS.ShadowCopy.Tests (1)
src\Shared\TaskToApm.cs (1)
66internal sealed class TaskAsyncResult : IAsyncResult
IISExpress.FunctionalTests (1)
src\Shared\TaskToApm.cs (1)
66internal sealed class TaskAsyncResult : IAsyncResult
Microsoft.AspNetCore.HttpLogging (1)
src\Shared\TaskToApm.cs (1)
66internal sealed class TaskAsyncResult : IAsyncResult
Microsoft.AspNetCore.OutputCaching (1)
src\Shared\TaskToApm.cs (1)
66internal sealed class TaskAsyncResult : IAsyncResult
Microsoft.AspNetCore.ResponseCaching (1)
src\Shared\TaskToApm.cs (1)
66internal sealed class TaskAsyncResult : IAsyncResult
Microsoft.AspNetCore.ResponseCompression (1)
src\Shared\TaskToApm.cs (1)
66internal sealed class TaskAsyncResult : IAsyncResult
Microsoft.AspNetCore.Server.HttpSys (4)
RequestProcessing\ClientCertLoader.cs (1)
16internal sealed unsafe partial class ClientCertLoader : IAsyncResult, IDisposable
RequestProcessing\RequestStreamAsyncResult.cs (1)
9internal sealed unsafe class RequestStreamAsyncResult : IAsyncResult, IDisposable
RequestProcessing\ResponseStreamAsyncResult.cs (1)
11internal sealed unsafe partial class ResponseStreamAsyncResult : IAsyncResult, IDisposable
src\Shared\TaskToApm.cs (1)
66internal sealed class TaskAsyncResult : IAsyncResult
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\TaskToApm.cs (1)
66internal sealed class TaskAsyncResult : IAsyncResult
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\TaskToApm.cs (1)
66internal sealed class TaskAsyncResult : IAsyncResult
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Shared\TaskToApm.cs (1)
66internal sealed class TaskAsyncResult : IAsyncResult
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\TaskToApm.cs (1)
66internal sealed class TaskAsyncResult : IAsyncResult
PresentationFramework (1)
System\Windows\Documents\PageContentAsyncResult.cs (1)
19internal sealed class PageContentAsyncResult : IAsyncResult
System.Net.HttpListener (3)
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (1)
12internal class LazyAsyncResult : IAsyncResult
System\Net\Managed\HttpStreamAsyncResult.cs (1)
37internal sealed class HttpStreamAsyncResult : IAsyncResult
System\Net\Managed\ListenerAsyncResult.Managed.cs (1)
39internal sealed class ListenerAsyncResult : IAsyncResult
System.Net.Requests (1)
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (1)
12internal class LazyAsyncResult : IAsyncResult
System.Private.CoreLib (2)
src\libraries\Common\src\System\Threading\Tasks\TaskToAsyncResult.cs (1)
108private sealed class TaskAsyncResult : IAsyncResult
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
114public class Task : IAsyncResult, IDisposable
System.ServiceModel.Federation (1)
System\Runtime\OperationWithTimeoutAsyncResult.cs (1)
55internal abstract class AsyncResult : IAsyncResult
System.Transactions.Local (1)
System\Transactions\CommittableTransaction.cs (1)
13public sealed class CommittableTransaction : Transaction, IAsyncResult
System.Windows.Forms (1)
System\Windows\Forms\Control.ThreadMethodEntry.cs (1)
11private class ThreadMethodEntry : IAsyncResult
UnitTests.Common (1)
MockAsyncResult.cs (1)
8public class MockAsyncResult : IAsyncResult
1637 references to IAsyncResult
Client.ClientBase.IntegrationTests (7)
ChannelBaseTests.4.0.0.cs (4)
37IAsyncResult ar = serviceProxy.BeginEcho(echoText, callback: null, asyncState: null); 80IAsyncResult ar = serviceProxy.BeginEcho("Hello", callback: null, asyncState: null); 132IAsyncResult ar = serviceProxy.BeginEcho("Hello", callback: null, asyncState: null); 187IAsyncResult ar = serviceProxy.BeginEcho("Hello", callback: null, asyncState: null);
ClientBaseTests.4.0.0.cs (3)
310IAsyncResult ar = ((ICommunicationObject)client).BeginOpen(null, null); 389IAsyncResult ar = ((ICommunicationObject)client).BeginOpen(timeout, null, null); 610IAsyncResult ar = ((ICommunicationObject)client).BeginClose(null, null);
Client.ExpectedExceptions.IntegrationTests (2)
ExpectedExceptionTests.4.1.0.cs (2)
254if ((task as IAsyncResult).AsyncWaitHandle.WaitOne(ScenarioTestHelpers.TestTimeout)) 306if ((task as IAsyncResult).AsyncWaitHandle.WaitOne(ScenarioTestHelpers.TestTimeout))
Client.TypedClient.IntegrationTests (3)
TypedProxyTests.4.0.0.cs (3)
376IAsyncResult ar = channel.BeginRequest(requestMessage, null, null); 474IAsyncResult ar = serviceProxy.BeginEcho("Hello", callback, null); 511IAsyncResult ar = serviceProxy.BeginEcho("Hello", null, null);
Contract.Service.IntegrationTests (4)
ServiceContractTests.4.0.0.cs (4)
46IAsyncResult ar = serviceProxy.BeginRequest(message, callback, null); 93IAsyncResult ar = serviceProxy.BeginRequest(message, callback, null); 139IAsyncResult ar = serviceProxy.BeginRequest(message, ref number, callback, null); 187IAsyncResult ar = serviceProxy.BeginRequest(message, ref uniqueType, callback, null);
dotnet-svcutil-lib (610)
CodeDomFixup\CodeDomHelpers.cs (3)
107MatchType<IAsyncResult>(method.ReturnType); 115(MatchType<IAsyncResult>(method.Parameters[paramCount - 1].Type) || 116MatchType<IAsyncResult>(method.Parameters[0].Type));
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (1)
29delegateType.TypeArguments.Add(new CodeTypeReference(typeof(IAsyncResult)));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\AsyncResult.cs (11)
25private Func<IAsyncResult, bool> _checkSyncValidationFunc; 106protected Action<AsyncCallback, IAsyncResult> VirtualCallback 192private static void AsyncCompletionWrapperCallback(IAsyncResult result) 238protected virtual bool OnContinueAsyncCompletion(IAsyncResult result) 250protected void SetCheckSyncValidationFunc(Func<IAsyncResult, bool> checkSyncValidationFunc) 270protected bool CheckSyncContinue(IAsyncResult result) 276protected bool SyncContinue(IAsyncResult result) 289private bool TryContinueHelper(IAsyncResult result, out AsyncCompletion callback) 324protected static void ThrowInvalidAsyncResult(IAsyncResult result) 342protected static TAsyncResult End<TAsyncResult>(IAsyncResult result) 387protected delegate bool AsyncCompletion(IAsyncResult result);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\CompletedAsyncResult.cs (3)
17public static void End(IAsyncResult result) 36public static T End(IAsyncResult result) 58public static TResult End(IAsyncResult result, out TParameter parameter)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (1)
987private void UnhandledExceptionFrame(IAsyncResult result)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (9)
38public InputQueue(Func<Action<AsyncCallback, IAsyncResult>> asyncCallbackGenerator) 64private Func<Action<AsyncCallback, IAsyncResult>> AsyncCallbackGenerator 75public IAsyncResult BeginDequeue(TimeSpan timeout, AsyncCallback callback, object state) 113public IAsyncResult BeginWaitForItem(TimeSpan timeout, AsyncCallback callback, object state) 271public bool EndDequeue(IAsyncResult result, out T value) 285public T EndDequeue(IAsyncResult result) 298public bool EndWaitForItem(IAsyncResult result) 819public static bool End(IAsyncResult result, out T value) 884public static bool End(IAsyncResult result)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ScheduleActionItemAsyncResult.cs (1)
46public static void End(IAsyncResult result)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TaskHelpers.cs (2)
133public static TResult ToApmEnd<TResult>(this IAsyncResult iar) 142public static void ToApmEnd(this IAsyncResult iar)
FrameworkFork\System.ServiceModel\System\ServiceModel\ChannelFactory.cs (4)
307protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 312protected override void OnEndClose(IAsyncResult result) 333protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 338protected override void OnEndOpen(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BodyWriter.cs (4)
92protected virtual IAsyncResult OnBeginWriteBodyContents(XmlDictionaryWriter writer, AsyncCallback callback, object state) 97protected virtual void OnEndWriteBodyContents(IAsyncResult result) 129public IAsyncResult BeginWriteBodyContents(XmlDictionaryWriter writer, AsyncCallback callback, object state) 135public void EndWriteBodyContents(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChainedAsyncResult.cs (11)
10internal delegate IAsyncResult ChainedBeginHandler(TimeSpan timeout, AsyncCallback asyncCallback, object state); 11internal delegate void ChainedEndHandler(IAsyncResult result); 41IAsyncResult result = begin1(_timeoutHelper.RemainingTime(), s_begin1Callback, this); 51private static void Begin1Callback(IAsyncResult result) 83private bool Begin1Completed(IAsyncResult result) 95private static void Begin2Callback(IAsyncResult result) 122public static void End(IAsyncResult result) 152private IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 157private void EndClose(IAsyncResult result) 187private IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 192private void EndOpen(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelFactoryBase.cs (4)
61protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 75protected override void OnEndClose(IAsyncResult result) 177protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 184protected override void OnEndClose(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (2)
42protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 47protected override void OnEndOpen(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CloseCollectionAsyncResult.cs (4)
34IAsyncResult result; 59private void CompleteClose(ICommunicationObject communicationObject, IAsyncResult result) 81private static void Callback(IAsyncResult result) 111public static void End(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CommunicationObject.cs (13)
116public IAsyncResult BeginClose(AsyncCallback callback, object state) 121public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 126public IAsyncResult BeginOpen(AsyncCallback callback, object state) 131public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 286public void EndClose(IAsyncResult result) 291public void EndOpen(IAsyncResult result) 748protected abstract IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state); 750protected abstract void OnEndClose(IAsyncResult result); 754protected abstract IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state); 756protected abstract void OnEndOpen(IAsyncResult result); 808public static IAsyncResult OnBeginClose(CommunicationObject communicationObject, TimeSpan timeout, AsyncCallback callback, object state) 813public static void OnEnd(IAsyncResult result) 823public static IAsyncResult OnBeginOpen(CommunicationObject communicationObject, TimeSpan timeout, AsyncCallback callback, object state)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionOrientedTransportChannelFactory.cs (2)
282protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 287protected override void OnEndOpen(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingChannels.cs (2)
219protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 224protected override void OnEndOpen(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (6)
480protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 485protected override void OnEndOpen(IAsyncResult result) 755protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 760protected override void OnEndOpen(IAsyncResult result) 788protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 793protected override void OnEndClose(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpsChannelFactory.cs (3)
109protected override void OnEndOpen(IAsyncResult result) 278protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 298protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IChannelAcceptor.cs (4)
11IAsyncResult BeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state); 12TChannel EndAcceptChannel(IAsyncResult result); 15IAsyncResult BeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state); 16bool EndWaitForChannel(IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IChannelListener.cs (5)
14IAsyncResult BeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state); 15bool EndWaitForChannel(IAsyncResult result); 23IAsyncResult BeginAcceptChannel(AsyncCallback callback, object state); 24IAsyncResult BeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state); 25TChannel EndAcceptChannel(IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IDuplexSession.cs (3)
13IAsyncResult BeginCloseOutputSession(AsyncCallback callback, object state); 14IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state); 15void EndCloseOutputSession(IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IInputChannel.cs (7)
17IAsyncResult BeginReceive(AsyncCallback callback, object state); 18IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state); 19Message EndReceive(IAsyncResult result); 22IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state); 23bool EndTryReceive(IAsyncResult result, out Message message); 26IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state); 27bool EndWaitForMessage(IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IOutputChannel.cs (3)
17IAsyncResult BeginSend(Message message, AsyncCallback callback, object state); 18IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state); 19void EndSend(IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IReplyChannel.cs (7)
13IAsyncResult BeginReceiveRequest(AsyncCallback callback, object state); 14IAsyncResult BeginReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state); 15RequestContext EndReceiveRequest(IAsyncResult result); 18IAsyncResult BeginTryReceiveRequest(TimeSpan timeout, AsyncCallback callback, object state); 19bool EndTryReceiveRequest(IAsyncResult result, out RequestContext context); 22IAsyncResult BeginWaitForRequest(TimeSpan timeout, AsyncCallback callback, object state); 23bool EndWaitForRequest(IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IRequestChannel.cs (3)
16IAsyncResult BeginRequest(Message message, AsyncCallback callback, object state); 17IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state); 18Message EndRequest(IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LayeredChannel.cs (4)
57protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 62protected override void OnEndClose(IAsyncResult result) 72protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 77protected override void OnEndOpen(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LayeredChannelFactory.cs (18)
40protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 45protected override void OnEndOpen(IAsyncResult result) 50protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 55protected override void OnEndClose(IAsyncResult result) 117public IAsyncResult BeginReceive(AsyncCallback callback, object state) 122public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 127public Message EndReceive(IAsyncResult result) 134public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 139public bool EndTryReceive(IAsyncResult result, out Message message) 158public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 163public bool EndWaitForMessage(IAsyncResult result) 211protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 216protected override void OnEndClose(IAsyncResult result) 228protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 233protected override void OnEndOpen(IAsyncResult result) 255public IAsyncResult BeginSend(Message message, AsyncCallback callback, object state) 260public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 265public void EndSend(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LifetimeManager.cs (5)
69public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 165public void EndClose(IAsyncResult result) 192protected virtual IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 240protected virtual void OnEndClose(IAsyncResult result) 300public static void End(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (14)
390public IAsyncResult BeginWriteBodyContents(XmlDictionaryWriter writer, AsyncCallback callback, object state) 396public void EndWriteBodyContents(IAsyncResult result) 409protected virtual IAsyncResult OnBeginWriteBodyContents(XmlDictionaryWriter writer, AsyncCallback callback, object state) 414protected virtual void OnEndWriteBodyContents(IAsyncResult result) 680public IAsyncResult BeginWriteMessage(XmlDictionaryWriter writer, AsyncCallback callback, object state) 686public void EndWriteMessage(IAsyncResult result) 730protected virtual IAsyncResult OnBeginWriteMessage(XmlDictionaryWriter writer, AsyncCallback callback, object state) 735protected virtual void OnEndWriteMessage(IAsyncResult result) 1069protected override IAsyncResult OnBeginWriteMessage(XmlDictionaryWriter writer, AsyncCallback callback, object state) 1076protected override void OnEndWriteMessage(IAsyncResult result) 1081protected override IAsyncResult OnBeginWriteBodyContents(XmlDictionaryWriter writer, AsyncCallback callback, object state) 1086protected override void OnEndWriteBodyContents(IAsyncResult result) 1128private bool HandleWriteBodyContents(IAsyncResult result) 1144public static void End(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageEncoder.cs (2)
105public virtual IAsyncResult BeginWriteMessage(Message message, Stream stream, AsyncCallback callback, object state) 110public virtual void EndWriteMessage(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\OpenCollectionAsyncResult.cs (3)
38IAsyncResult result = collection[index].BeginOpen(_timeoutHelper.RemainingTime(), s_nestedCallback, callbackState); 47private static void Callback(IAsyncResult result) 86public static void End(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\OutputChannel.cs (3)
24public IAsyncResult BeginSend(Message message, AsyncCallback callback, object state) 29public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 44public void EndSend(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestChannel.cs (5)
76protected IAsyncResult BeginWaitForPendingRequests(TimeSpan timeout, AsyncCallback callback, object state) 81protected void EndWaitForPendingRequests(IAsyncResult result) 218public IAsyncResult BeginRequest(Message message, AsyncCallback callback, object state) 223public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 230public Message EndRequest(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestContext.cs (3)
20public abstract IAsyncResult BeginReply(Message message, AsyncCallback callback, object state); 21public abstract IAsyncResult BeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state); 22public abstract void EndReply(IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestContextBase.cs (5)
187protected abstract IAsyncResult OnBeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state); 188protected abstract void OnEndReply(IAsyncResult result); 224public override IAsyncResult BeginReply(Message message, AsyncCallback callback, object state) 229public override IAsyncResult BeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state) 241public override void EndReply(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (42)
470private IAsyncResult BeginEnsureDisplayUI(AsyncCallback callback, object state) 483private void EndEnsureDisplayUI(IAsyncResult result) 509private IAsyncResult BeginEnsureOpened(TimeSpan timeout, AsyncCallback callback, object state) 525private void EndEnsureOpened(IAsyncResult result) 671internal static IAsyncResult BeginCall(ServiceChannel channel, ProxyOperationRuntime operation, object[] ins, AsyncCallback callback, object asyncState) 678internal IAsyncResult BeginCall(string action, bool oneway, ProxyOperationRuntime operation, object[] ins, AsyncCallback callback, object asyncState) 683internal IAsyncResult BeginCall(string action, bool oneway, ProxyOperationRuntime operation, object[] ins, TimeSpan timeout, AsyncCallback callback, object asyncState) 787internal object EndCall(string action, object[] outs, IAsyncResult result) 1197public IAsyncResult BeginSend(Message message, AsyncCallback callback, object state) 1202public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 1208public void EndSend(IAsyncResult result) 1224public IAsyncResult BeginRequest(Message message, AsyncCallback callback, object state) 1229public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 1235public Message EndRequest(IAsyncResult result) 1261protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 1266protected override void OnEndClose(IAsyncResult result) 1319protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 1324protected override void OnEndOpen(IAsyncResult result) 1415IAsyncResult IDuplexContextChannel.BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state) 1420void IDuplexContextChannel.EndCloseOutputSession(IAsyncResult result) 1573public IAsyncResult BeginDisplayInitializationUI(AsyncCallback callback, object state) 1585public void EndDisplayInitializationUI(IAsyncResult result) 1687IAsyncResult result = Rpc.Channel.BeginEnsureDisplayUI(s_ensureInteractiveInitCallback, this); 1695private static void EnsureInteractiveInitCallback(IAsyncResult result) 1703private void FinishEnsureInteractiveInit(IAsyncResult result, bool completedSynchronously) 1733IAsyncResult result = null; 1759private static void EnsureOpenCallback(IAsyncResult result) 1767private void FinishEnsureOpen(IAsyncResult result, bool completedSynchronously) 1799IAsyncResult result = null; 1843private static void SendCallback(IAsyncResult result) 1851private void FinishSend(IAsyncResult result, bool completedSynchronously) 1911IAsyncResult BeginCall(ServiceChannel channel, TimeSpan timeout, AsyncCallback callback, object state); 1912void EndCall(ServiceChannel channel, IAsyncResult result); 1946IAsyncResult ICallOnce.BeginCall(ServiceChannel channel, TimeSpan timeout, AsyncCallback callback, object state) 1952void ICallOnce.EndCall(ServiceChannel channel, IAsyncResult result) 1979IAsyncResult ICallOnce.BeginCall(ServiceChannel channel, TimeSpan timeout, AsyncCallback callback, object state) 1984void ICallOnce.EndCall(ServiceChannel channel, IAsyncResult result) 2060internal IAsyncResult BeginCallOnce(TimeSpan timeout, CallOnceManager cascade, 2093IAsyncResult result = _callOnce.BeginCall(_channel, timeout, callback, state); 2115internal void EndCallOnce(IAsyncResult result) 2282internal static void End(IAsyncResult result) 2324static internal void End(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelFactory.cs (6)
269protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 281protected override void OnEndClose(IAsyncResult result) 424protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 429protected override void OnEndOpen(IAsyncResult result) 441protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 447protected override void OnEndClose(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (21)
172Action<IAsyncResult> endCallDelegate = (asyncResult) => 195IAsyncResult ar = ServiceChannel.BeginCall(channel, operation, inputParameters, new AsyncCallback(endCallDelegate), OperationContext.Current); 214Action<IAsyncResult> endCallDelegate = (asyncResult) => 237IAsyncResult ar = ServiceChannel.BeginCall(channel, operation, inputParameters, new AsyncCallback(endCallDelegate), OperationContext.Current); 360IAsyncResult result; 578IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state) 583IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 588void ICommunicationObject.EndClose(IAsyncResult result) 603IAsyncResult ICommunicationObject.BeginOpen(AsyncCallback callback, object state) 608IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 613void ICommunicationObject.EndOpen(IAsyncResult result) 646IAsyncResult IClientChannel.BeginDisplayInitializationUI(AsyncCallback callback, object state) 656void IClientChannel.EndDisplayInitializationUI(IAsyncResult result) 730IAsyncResult IOutputChannel.BeginSend(Message message, AsyncCallback callback, object state) 735IAsyncResult IOutputChannel.BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 740void IOutputChannel.EndSend(IAsyncResult result) 765IAsyncResult IRequestChannel.BeginRequest(Message message, AsyncCallback callback, object state) 770IAsyncResult IRequestChannel.BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 775Message IRequestChannel.EndRequest(IAsyncResult result) 780public IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state) 785public void EndCloseOutputSession(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (6)
247protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 252protected override void OnEndClose(IAsyncResult result) 296protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 301protected override void OnEndOpen(IAsyncResult result) 380protected override IAsyncResult OnBeginAcceptUpgrade(Stream stream, AsyncCallback callback, object state) 385protected override Stream OnEndAcceptUpgrade(IAsyncResult result, out SecurityMessageProperty remoteSecurity)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\StreamSecurityUpgradeAcceptorBase.cs (4)
47public override IAsyncResult BeginAcceptUpgrade(Stream stream, AsyncCallback callback, object state) 67public override Stream EndAcceptUpgrade(IAsyncResult result) 85protected abstract IAsyncResult OnBeginAcceptUpgrade(Stream stream, AsyncCallback callback, object state); 86protected abstract Stream OnEndAcceptUpgrade(IAsyncResult result,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\StreamUpgradeAcceptor.cs (2)
22public abstract IAsyncResult BeginAcceptUpgrade(Stream stream, AsyncCallback callback, object state); 23public abstract Stream EndAcceptUpgrade(IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TextMessageEncoder.cs (2)
562public override IAsyncResult BeginWriteMessage(Message message, Stream stream, AsyncCallback callback, object state) 567public override void EndWriteMessage(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportChannelFactory.cs (1)
134protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (12)
151public IAsyncResult BeginReceive(AsyncCallback callback, object state) 156public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 161public Message EndReceive(IAsyncResult result) 166public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 171public bool EndTryReceive(IAsyncResult result, out Message message) 255public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 260public bool EndWaitForMessage(IAsyncResult result) 428protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 433protected override void OnEndClose(IAsyncResult result) 775public IAsyncResult BeginCloseOutputSession(AsyncCallback callback, object state) 780public IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state) 785public void EndCloseOutputSession(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (2)
234IAsyncResult result = MessageEncoder.BeginWriteMessage(message, new TimeoutStream(webSocketStream, timeout), s_streamedWriteCallback, this); 434private static void StreamWriteCallback(IAsyncResult ar)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (6)
136protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 141protected override void OnEndClose(IAsyncResult result) 157protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 163protected override void OnEndOpen(IAsyncResult result) 230protected override IAsyncResult OnBeginAcceptUpgrade(Stream stream, AsyncCallback callback, object state) 235protected override Stream OnEndAcceptUpgrade(IAsyncResult result,
FrameworkFork\System.ServiceModel\System\ServiceModel\ClientBase.cs (34)
279IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state) 284IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 289void ICommunicationObject.EndClose(IAsyncResult result) 294IAsyncResult ICommunicationObject.BeginOpen(AsyncCallback callback, object state) 299IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 304void ICommunicationObject.EndOpen(IAsyncResult result) 311internal IAsyncResult BeginFactoryOpen(TimeSpan timeout, AsyncCallback callback, object state) 316internal void EndFactoryOpen(IAsyncResult result) 321internal IAsyncResult BeginChannelOpen(TimeSpan timeout, AsyncCallback callback, object state) 326internal void EndChannelOpen(IAsyncResult result) 331internal IAsyncResult BeginFactoryClose(TimeSpan timeout, AsyncCallback callback, object state) 336internal void EndFactoryClose(IAsyncResult result) 348internal IAsyncResult BeginChannelClose(TimeSpan timeout, AsyncCallback callback, object state) 360internal void EndChannelClose(IAsyncResult result) 374protected delegate IAsyncResult BeginOperationDelegate(object[] inValues, AsyncCallback asyncCallback, object state); 375protected delegate object[] EndOperationDelegate(IAsyncResult result); 417IAsyncResult result = null; 441private static void OnAsyncCallCompleted(IAsyncResult result) 539protected IAsyncResult BeginInvoke(string methodName, object[] args, AsyncCallback callback, object state) 552protected object EndInvoke(string methodName, object[] args, IAsyncResult result) 609IAsyncResult IClientChannel.BeginDisplayInitializationUI(AsyncCallback callback, object state) 614void IClientChannel.EndDisplayInitializationUI(IAsyncResult result) 711IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state) 716IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 721void ICommunicationObject.EndClose(IAsyncResult result) 736IAsyncResult ICommunicationObject.BeginOpen(AsyncCallback callback, object state) 741IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 746void ICommunicationObject.EndOpen(IAsyncResult result) 781IAsyncResult IOutputChannel.BeginSend(Message message, AsyncCallback callback, object state) 786IAsyncResult IOutputChannel.BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 791void IOutputChannel.EndSend(IAsyncResult result) 816IAsyncResult IRequestChannel.BeginRequest(Message message, AsyncCallback callback, object state) 821IAsyncResult IRequestChannel.BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 826Message IRequestChannel.EndRequest(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (2)
49private static Type s_asyncResultType = typeof(IAsyncResult); 53private static CodeTypeReference s_asyncResultTypeRef = new CodeTypeReference(typeof(IAsyncResult));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\IMetadataExchange.cs (2)
17IAsyncResult BeginGet(Message request, AsyncCallback callback, object state); 18Message EndGet(IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (23)
228public IAsyncResult BeginGetMetadata(AsyncCallback callback, object asyncState) 238public IAsyncResult BeginGetMetadata(Uri address, MetadataExchangeClientMode mode, AsyncCallback callback, object asyncState) 252public IAsyncResult BeginGetMetadata(EndpointAddress address, AsyncCallback callback, object asyncState) 261private IAsyncResult BeginGetMetadata(MetadataRetriever retriever, AsyncCallback callback, object asyncState) 268public MetadataSet EndGetMetadata(IAsyncResult result) 641internal abstract IAsyncResult BeginRetrieve(TimeoutHelper timeoutHelper, AsyncCallback callback, object state); 642internal abstract MetadataSection EndRetrieve(IAsyncResult result); 789internal override IAsyncResult BeginRetrieve(TimeoutHelper timeoutHelper, AsyncCallback callback, object state) 822internal override MetadataSection EndRetrieve(IAsyncResult result) 854IAsyncResult result = request.BeginGetResponse(Fx.ThunkCallback(new AsyncCallback(this.GetResponseCallback)), request); 869internal static MetadataSection End(IAsyncResult result) 875internal void GetResponseCallback(IAsyncResult result) 895private void HandleResult(IAsyncResult result) 946internal override IAsyncResult BeginRetrieve(TimeoutHelper timeoutHelper, AsyncCallback callback, object state) 1056internal override MetadataSection EndRetrieve(IAsyncResult result) 1091IAsyncResult result = metadataClient.BeginGet(_message, Fx.ThunkCallback(new AsyncCallback(this.RequestCallback)), metadataClient); 1101internal static MetadataSection End(IAsyncResult result) 1107internal void RequestCallback(IAsyncResult result) 1127private void HandleResult(IAsyncResult result) 1207IAsyncResult result = retriever.BeginRetrieve(_resolveCallState.TimeoutHelper, Fx.ThunkCallback(new AsyncCallback(this.RetrieveCallback)), retriever); 1224internal static MetadataSet End(IAsyncResult result) 1230internal void RetrieveCallback(IAsyncResult result) 1256private bool HandleResult(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (2)
291beginMethod.ReturnType = _context.ServiceContractGenerator.GetCodeTypeReference(typeof(IAsyncResult)); 296endMethod.Parameters.Add(new CodeParameterDeclarationExpression(_context.ServiceContractGenerator.GetCodeTypeReference(typeof(IAsyncResult)), Strings.AsyncResultArgName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (1)
355private static readonly Type s_asyncResultType = typeof(IAsyncResult);
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceAsyncResult.cs (3)
12private static Action<AsyncCallback, IAsyncResult> s_waitResultCallback = new Action<AsyncCallback, IAsyncResult>(DoCallback); 37private static void DoCallback(AsyncCallback callback, IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (1)
577private void ExecuteUserCode(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\BufferedReceiveBinder.cs (11)
95public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 99IAsyncResult result = _channelBinder.BeginTryReceive(timeout, s_tryReceiveCallback, this); 109public bool EndTryReceive(IAsyncResult result, out RequestContext requestContext) 135public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 140public void EndSend(IAsyncResult result) 150public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 155public Message EndRequest(IAsyncResult result) 165public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 170public bool EndWaitForMessage(IAsyncResult result) 217private static void TryReceiveCallback(IAsyncResult result) 227private static void HandleEndTryReceive(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (4)
421protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 439protected override void OnEndClose(IAsyncResult result) 532protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 553protected override void OnEndOpen(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelHandler.cs (11)
185IAsyncResult result = this.BeginTryReceive(); 193private void AsyncMessagePump(IAsyncResult result) 233private IAsyncResult BeginTryReceive() 327private bool EndTryReceive(IAsyncResult result, out RequestContext requestContext) 406IAsyncResult result = this.BeginTryReceive(); 748private static void OnAsyncReceiveComplete(IAsyncResult result) 758IAsyncResult result = (IAsyncResult)state; 920var result = request.BeginReply(reply, ChannelHandler.s_onAsyncReplyComplete, state); 1026private static void AsyncReplyComplete(IAsyncResult result, ContinuationState state) 1073private static void OnAsyncReplyComplete(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (2)
216IAsyncResult result; 249private static void InvokeCallback(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchRuntime.cs (2)
418public IAsyncResult InvokeBegin(object instance, object[] inputs, AsyncCallback callback, object state) 423public object InvokeEnd(object instance, out object[] outputs, IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (43)
304public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 312public bool EndTryReceive(IAsyncResult result, out RequestContext requestContext) 348public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 353public void EndSend(IAsyncResult result) 363public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 378IAsyncResult result = _channel.BeginSend(message, timeout, Fx.ThunkCallback(new AsyncCallback(this.SendCallback)), duplexRequest); 404public Message EndRequest(IAsyncResult result) 601private void SendCallback(IAsyncResult result) 618public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 623public bool EndWaitForMessage(IAsyncResult result) 656protected override IAsyncResult OnBeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state) 661protected override void OnEndReply(IAsyncResult result) 681IAsyncResult result = context._channel.BeginSend(message, timeout, s_onSend, this); 692public static void End(IAsyncResult result) 697private static void OnSend(IAsyncResult result) 807private IAsyncResult _sendResult; 922public void FinishedSend(IAsyncResult sendResult, bool completedSynchronously) 1155IAsyncResult result = null; 1189IAsyncResult result = (IAsyncResult)state; 1194private static void ReceiveAsyncCallback(IAsyncResult result) 1204private void OnReceive(IAsyncResult result) 1251IAsyncResult result = null; 1284private static void CloseInnerChannelCallback(IAsyncResult result) 1294private void OnCloseInnerChannel(IAsyncResult result) 1333public IAsyncResult BeginReceive(AsyncCallback callback, object state) 1338public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 1343public Message EndReceive(IAsyncResult result) 1353public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 1358public bool EndTryReceive(IAsyncResult result, out Message message) 1368public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 1373public bool EndWaitForMessage(IAsyncResult result) 1412public IAsyncResult BeginClose(AsyncCallback callback, object state) 1417public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 1434public void EndClose(IAsyncResult result) 1466public IAsyncResult BeginOpen(AsyncCallback callback, object state) 1471public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 1476public void EndOpen(IAsyncResult result) 1492public IAsyncResult BeginSend(Message message, AsyncCallback callback, object state) 1497public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 1502public void EndSend(IAsyncResult result) 1556public IAsyncResult BeginWaitForBackgroundClose(TimeSpan timeout, AsyncCallback callback, object state) 1562public void EndWaitForBackgroundClose(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ErrorHandlingReceiver.cs (2)
96internal IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 131internal bool EndTryReceive(IAsyncResult result, out RequestContext requestContext)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\IChannelBinder.cs (8)
21IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state); 22bool EndTryReceive(IAsyncResult result, out RequestContext requestContext); 25IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state); 26void EndSend(IAsyncResult result); 29IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state); 30Message EndRequest(IAsyncResult result); 33IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state); 34bool EndWaitForMessage(IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\IInteractiveChannelInitializer.cs (2)
9IAsyncResult BeginDisplayInitializationUI(IClientChannel channel, AsyncCallback callback, object state); 10void EndDisplayInitializationUI(IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\IListenerBinder.cs (2)
15IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state); 16IChannelBinder EndAccept(IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (6)
149internal IAsyncResult BeginDisplayInitializationUI(ServiceChannel channel, AsyncCallback callback, object state) 154internal void EndDisplayInitializationUI(IAsyncResult result) 263IAsyncResult result = null; 304private static void Callback(IAsyncResult result) 325private void CallEnd(IAsyncResult result, out Exception exception) 348internal static void End(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (1)
283private static void OnReplyCompletedCallback(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\InputChannelBinder.cs (10)
67public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 72public bool EndTryReceive(IAsyncResult result, out RequestContext requestContext) 92public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 97public void EndSend(IAsyncResult result) 122public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 127public Message EndRequest(IAsyncResult result) 142public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 147public bool EndWaitForMessage(IAsyncResult result) 186protected override IAsyncResult OnBeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state) 191protected override void OnEndReply(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\IOperationInvoker.cs (2)
12IAsyncResult InvokeBegin(object instance, object[] inputs, AsyncCallback callback, object state); 13object InvokeEnd(object instance, out object[] outputs, IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\IResumeMessageRpc.cs (2)
13void Resume(IAsyncResult result); 15void SignalConditionalResume(IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ListenerBinder.cs (12)
76public IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state) 81public IChannelBinder EndAccept(IAsyncResult result) 123public IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state) 128public IChannelBinder EndAccept(IAsyncResult result) 168public IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state) 173public IChannelBinder EndAccept(IAsyncResult result) 213public IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state) 218public IChannelBinder EndAccept(IAsyncResult result) 258public IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state) 263public IChannelBinder EndAccept(IAsyncResult result) 303public IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state) 308public IChannelBinder EndAccept(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ListenerHandler.cs (9)
96protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 101protected override void OnEndOpen(IAsyncResult result) 140private static void WaitCallback(IAsyncResult result) 171IAsyncResult result = duplexSession.BeginCloseOutputSession(timeout, Fx.ThunkCallback(new AsyncCallback(CloseOutputSessionCallback)), state); 177IAsyncResult result = channel.BeginClose(timeout, Fx.ThunkCallback(new AsyncCallback(CloseChannelCallback)), state); 198private static void CloseChannelCallback(IAsyncResult result) 246private static void CloseOutputSessionCallback(IAsyncResult result) 381protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 415protected override void OnEndClose(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\MessageRpc.cs (6)
27internal IAsyncResult AsyncResult; 63private SignalGate<IAsyncResult> _invokeContinueGate; 504internal bool UnlockInvokeContinueGate(out IAsyncResult result) 511_invokeContinueGate = new SignalGate<IAsyncResult>(); 572public void Resume(IAsyncResult result) 600public void SignalConditionalResume(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (10)
370private IAsyncResult BeginSerializeBodyContents(XmlDictionaryWriter writer, MessageVersion version, object[] parameters, object returnValue, bool isRequest, 376private void EndSerializeBodyContents(IAsyncResult result) 401IAsyncResult result = streamFormatter.BeginSerialize(writer, parameters, returnValue, PrepareAsyncCompletion(s_handleEndSerializeBodyContents), this); 418private static bool HandleEndSerializeBodyContents(IAsyncResult result) 425public static void End(IAsyncResult result) 731protected override IAsyncResult OnBeginWriteBodyContents(XmlDictionaryWriter writer, AsyncCallback callback, object state) 738protected override void OnEndWriteBodyContents(IAsyncResult result) 760IAsyncResult result = _operationFormatter.BeginSerializeBodyContents(writer, operationFormatterBodyWriter._version, 771private static bool HandleEndOnWriteBodyContents(IAsyncResult result) 778public static void End(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OutputChannelBinder.cs (8)
65public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 70public bool EndTryReceive(IAsyncResult result, out RequestContext requestContext) 80public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 85public void EndSend(IAsyncResult result) 95public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 100public Message EndRequest(IAsyncResult result) 120public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 125public bool EndWaitForMessage(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (2)
343internal void MapAsyncEndInputs(MethodCall methodCall, out IAsyncResult result, out object[] outs) 346result = methodCall.Args[methodCall.Args.Length - 1] as IAsyncResult;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ReplyChannelBinder.cs (8)
67public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 72public bool EndTryReceive(IAsyncResult result, out RequestContext requestContext) 82public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 87public void EndSend(IAsyncResult result) 97public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 102public Message EndRequest(IAsyncResult result) 122public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 127public bool EndWaitForMessage(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\RequestChannelBinder.cs (8)
59public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 64public bool EndTryReceive(IAsyncResult result, out RequestContext requestContext) 74public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 79public void EndSend(IAsyncResult result) 89public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 94public Message EndRequest(IAsyncResult result) 123public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 128public bool EndWaitForMessage(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\StreamFormatter.cs (4)
84internal IAsyncResult BeginSerialize(XmlDictionaryWriter writer, object[] parameters, object returnValue, AsyncCallback callback, object state) 89public void EndSerialize(IAsyncResult result) 113private static bool HandleEndSerialize(IAsyncResult result) 120public static void End(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (2)
56public IAsyncResult InvokeBegin(object instance, object[] inputs, AsyncCallback callback, object state) 61public object InvokeEnd(object instance, out object[] outputs, IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (2)
63public IAsyncResult InvokeBegin(object instance, object[] inputs, AsyncCallback callback, object state) 68public object InvokeEnd(object instance, out object[] outputs, IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\IClientChannel.cs (2)
24IAsyncResult BeginDisplayInitializationUI(AsyncCallback callback, object state); 25void EndDisplayInitializationUI(IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\ICommunicationObject.cs (6)
23IAsyncResult BeginClose(AsyncCallback callback, object state); 24IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state); 25void EndClose(IAsyncResult result); 29IAsyncResult BeginOpen(AsyncCallback callback, object state); 30IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state); 31void EndOpen(IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\IDuplexContextChannel.cs (2)
12IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state); 13void EndCloseOutputSession(IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\InstanceContext.cs (7)
228protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 233protected override void OnEndClose(IAsyncResult result) 238protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 243protected override void OnEndOpen(IAsyncResult result) 306IAsyncResult result = _instanceContext._channels.BeginClose(_timeoutHelper.RemainingTime(), PrepareAsyncCompletion(new AsyncCompletion(CloseChannelsCallback)), this); 313public static void End(IAsyncResult result) 318private bool CloseChannelsCallback(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ISecurityCommunicationObject.cs (4)
12IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state); 13IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state); 17void OnEndClose(IAsyncResult result); 18void OnEndOpen(IAsyncResult result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityChannel.cs (5)
63protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 69protected override void OnEndClose(IAsyncResult result) 74private IAsyncResult BeginCloseSecurityProtocol(TimeSpan timeout, AsyncCallback callback, object state) 79private void EndCloseSecurityProtocol(IAsyncResult result) 110new public static void End(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocol.cs (4)
45public IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) { throw ExceptionHelper.PlatformNotSupported(); } 46public IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) { throw ExceptionHelper.PlatformNotSupported(); } 50public void OnEndClose(IAsyncResult result) { throw ExceptionHelper.PlatformNotSupported(); } 51public void OnEndOpen(IAsyncResult result) { throw ExceptionHelper.PlatformNotSupported(); }
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (8)
609public IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 614public IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 627public void OnEndClose(IAsyncResult result) 632public void OnEndOpen(IAsyncResult result) 1043public IAsyncResult BeginOpen(bool actAsInitiator, TimeSpan timeout, AsyncCallback callback, object state) 1049public void EndOpen(IAsyncResult result) 1066public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 1071public void EndClose(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (1)
1094public static void End(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WrapperSecurityCommunicationObject.cs (24)
47protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 52protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 74protected override void OnEndClose(IAsyncResult result) 79protected override void OnEndOpen(IAsyncResult result) 227public IAsyncResult BeginClose(AsyncCallback callback, object state) 232public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 237public void EndClose(IAsyncResult result) 252public IAsyncResult BeginOpen(AsyncCallback callback, object state) 257public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 262public void EndOpen(IAsyncResult result) 277public IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 282public IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 299public void OnEndClose(IAsyncResult result) 304public void OnEndOpen(IAsyncResult result) 402public IAsyncResult BeginClose(AsyncCallback callback, object state) 407public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 412public void EndClose(IAsyncResult result) 427public IAsyncResult BeginOpen(AsyncCallback callback, object state) 432public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 437public void EndOpen(IAsyncResult result) 452public IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 457public IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 474public void OnEndClose(IAsyncResult result) 479public void OnEndOpen(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityJan2004.cs (2)
281public override IAsyncResult BeginReadTokenCore(XmlDictionaryReader reader, SecurityTokenResolver tokenResolver, AsyncCallback callback, object state) 310public override SecurityToken EndReadTokenCore(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityTokenSerializer.cs (2)
446public virtual IAsyncResult BeginReadTokenCore(XmlDictionaryReader reader, 512public virtual SecurityToken EndReadTokenCore(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrustFeb2005.cs (4)
276protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 281protected override void OnEndOpen(IAsyncResult result) 286protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 291protected override void OnEndClose(IAsyncResult result)
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceChannelManager.cs (6)
125public IAsyncResult BeginCloseInput(TimeSpan timeout, AsyncCallback callback, object state) 237public void EndCloseInput(IAsyncResult result) 314protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 319private IAsyncResult OnBeginCloseContinue(TimeSpan timeout, AsyncCallback callback, object state) 334protected override void OnEndClose(IAsyncResult result) 339private void OnEndCloseContinue(IAsyncResult result)
Metadata\MetadaExchangeResolver.cs (2)
183IAsyncResult result = this.BeginGetMetadata(serviceUri, metadataExchangeMode, null, null); 253IAsyncResult result = _currentRequest.BeginGetResponse(null, null);
http2cat (8)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (4)
153public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 158public override int EndRead(IAsyncResult asyncResult) 163public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 168public override void EndWrite(IAsyncResult asyncResult)
src\Shared\TaskToApm.cs (4)
32public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) => 37public static void End(IAsyncResult asyncResult) 50public static TResult End<TResult>(IAsyncResult asyncResult) 117public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle;
IIS.FunctionalTests (8)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (4)
153public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 158public override int EndRead(IAsyncResult asyncResult) 163public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 168public override void EndWrite(IAsyncResult asyncResult)
src\Shared\TaskToApm.cs (4)
32public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) => 37public static void End(IAsyncResult asyncResult) 50public static TResult End<TResult>(IAsyncResult asyncResult) 117public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle;
IIS.LongTests (8)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (4)
153public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 158public override int EndRead(IAsyncResult asyncResult) 163public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 168public override void EndWrite(IAsyncResult asyncResult)
src\Shared\TaskToApm.cs (4)
32public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) => 37public static void End(IAsyncResult asyncResult) 50public static TResult End<TResult>(IAsyncResult asyncResult) 117public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle;
IIS.NewHandler.FunctionalTests (8)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (4)
153public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 158public override int EndRead(IAsyncResult asyncResult) 163public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 168public override void EndWrite(IAsyncResult asyncResult)
src\Shared\TaskToApm.cs (4)
32public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) => 37public static void End(IAsyncResult asyncResult) 50public static TResult End<TResult>(IAsyncResult asyncResult) 117public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle;
IIS.NewShim.FunctionalTests (8)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (4)
153public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 158public override int EndRead(IAsyncResult asyncResult) 163public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 168public override void EndWrite(IAsyncResult asyncResult)
src\Shared\TaskToApm.cs (4)
32public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) => 37public static void End(IAsyncResult asyncResult) 50public static TResult End<TResult>(IAsyncResult asyncResult) 117public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle;
IIS.ShadowCopy.Tests (8)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (4)
153public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 158public override int EndRead(IAsyncResult asyncResult) 163public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 168public override void EndWrite(IAsyncResult asyncResult)
src\Shared\TaskToApm.cs (4)
32public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) => 37public static void End(IAsyncResult asyncResult) 50public static TResult End<TResult>(IAsyncResult asyncResult) 117public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle;
IISExpress.FunctionalTests (8)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (4)
153public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 158public override int EndRead(IAsyncResult asyncResult) 163public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 168public override void EndWrite(IAsyncResult asyncResult)
src\Shared\TaskToApm.cs (4)
32public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) => 37public static void End(IAsyncResult asyncResult) 50public static TResult End<TResult>(IAsyncResult asyncResult) 117public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle;
Microsoft.AspNetCore.Components.WebView.WindowsForms (5)
WindowsFormsDispatcher.cs (5)
13 /// class uses the async <see cref="Task"/> pattern so everything must be mapped from the <see cref="IAsyncResult"/> 51 var asyncResult = _dispatchThreadControl.BeginInvoke(workItem); 95 var asyncResult = _dispatchThreadControl.BeginInvoke(action, workItem, tcs); 119 var asyncResult = _dispatchThreadControl.BeginInvoke(workItem); 163 var asyncResult = _dispatchThreadControl.BeginInvoke(action, workItem, tcs);
Microsoft.AspNetCore.HttpLogging (12)
BufferingStream.cs (4)
271public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 276public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 281public override int EndRead(IAsyncResult asyncResult) 286public override void EndWrite(IAsyncResult asyncResult)
RequestBufferingStream.cs (2)
141public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 146public override int EndRead(IAsyncResult asyncResult)
ResponseBufferingStream.cs (2)
51public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 56public override void EndWrite(IAsyncResult asyncResult)
src\Shared\TaskToApm.cs (4)
32public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) => 37public static void End(IAsyncResult asyncResult) 50public static TResult End<TResult>(IAsyncResult asyncResult) 117public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle;
Microsoft.AspNetCore.Mvc.Core (4)
Infrastructure\NonDisposableStream.cs (4)
88public override IAsyncResult BeginRead( 99public override int EndRead(IAsyncResult asyncResult) 105public override IAsyncResult BeginWrite( 116public override void EndWrite(IAsyncResult asyncResult)
Microsoft.AspNetCore.OutputCaching (6)
src\Shared\TaskToApm.cs (4)
32public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) => 37public static void End(IAsyncResult asyncResult) 50public static TResult End<TResult>(IAsyncResult asyncResult) 117public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle;
Streams\OutputCacheStream.cs (2)
219public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 222public override void EndWrite(IAsyncResult asyncResult)
Microsoft.AspNetCore.RequestDecompression.Tests (1)
SizeLimitedStreamTests.cs (1)
86var asyncResult = sizeLimitedStream.BeginRead(buffer, 0, buffer.Length, (o) => { }, null);
Microsoft.AspNetCore.ResponseCaching (8)
src\Shared\SegmentWriteStream.cs (2)
180public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 183public override void EndWrite(IAsyncResult asyncResult)
src\Shared\TaskToApm.cs (4)
32public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) => 37public static void End(IAsyncResult asyncResult) 50public static TResult End<TResult>(IAsyncResult asyncResult) 117public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle;
Streams\ResponseCachingStream.cs (2)
184public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 187public override void EndWrite(IAsyncResult asyncResult)
Microsoft.AspNetCore.ResponseCompression (6)
ResponseCompressionBody.cs (2)
171public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 174public override void EndWrite(IAsyncResult asyncResult)
src\Shared\TaskToApm.cs (4)
32public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) => 37public static void End(IAsyncResult asyncResult) 50public static TResult End<TResult>(IAsyncResult asyncResult) 117public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle;
Microsoft.AspNetCore.ResponseCompression.Tests (2)
ResponseCompressionMiddlewareTest.cs (2)
1444public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state) 1449public override void EndWrite(IAsyncResult asyncResult)
Microsoft.AspNetCore.Server.HttpSys (26)
RequestProcessing\ClientCertLoader.cs (2)
333get { return ((IAsyncResult)_tcs.Task).AsyncWaitHandle; } 338get { return ((IAsyncResult)_tcs.Task).CompletedSynchronously; }
RequestProcessing\OpaqueStream.cs (4)
88public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 93public override int EndRead(IAsyncResult asyncResult) 127public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 132public override void EndWrite(IAsyncResult asyncResult)
RequestProcessing\RequestStream.cs (4)
183public override unsafe IAsyncResult BeginRead(byte[] buffer, int offset, int size, AsyncCallback? callback, object? state) 186public override int EndRead(IAsyncResult asyncResult) 307public override IAsyncResult BeginWrite(byte[] buffer, int offset, int size, AsyncCallback? callback, object? state) 312public override void EndWrite(IAsyncResult asyncResult)
RequestProcessing\RequestStreamAsyncResult.cs (2)
164get { return ((IAsyncResult)_tcs.Task).AsyncWaitHandle; } 169get { return ((IAsyncResult)_tcs.Task).CompletedSynchronously; }
RequestProcessing\ResponseBody.cs (4)
437public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 442public override int EndRead(IAsyncResult asyncResult) 564public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 569public override void EndWrite(IAsyncResult asyncResult)
RequestProcessing\ResponseStreamAsyncResult.cs (2)
320get { return ((IAsyncResult)_tcs.Task).AsyncWaitHandle; } 325get { return ((IAsyncResult)_tcs.Task).CompletedSynchronously; }
ResponseStream.cs (4)
37public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 42public override int EndRead(IAsyncResult asyncResult) 73public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 76public override void EndWrite(IAsyncResult asyncResult)
src\Shared\TaskToApm.cs (4)
32public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) => 37public static void End(IAsyncResult asyncResult) 50public static TResult End<TResult>(IAsyncResult asyncResult) 117public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle;
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (4)
153public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 158public override int EndRead(IAsyncResult asyncResult) 163public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 168public override void EndWrite(IAsyncResult asyncResult)
Microsoft.AspNetCore.Server.IIS (20)
Core\HttpRequestStream.cs (2)
34public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 39public override int EndRead(IAsyncResult asyncResult)
Core\HttpResponseStream.cs (2)
43public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 48public override void EndWrite(IAsyncResult asyncResult)
Core\HttpUpgradeStream.cs (4)
118public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 123public override int EndRead(IAsyncResult asyncResult) 128public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 133public override void EndWrite(IAsyncResult asyncResult)
Core\WrappingStream.cs (4)
90public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 93public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 96public override int EndRead(IAsyncResult asyncResult) 99public override void EndWrite(IAsyncResult asyncResult)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (4)
153public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 158public override int EndRead(IAsyncResult asyncResult) 163public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 168public override void EndWrite(IAsyncResult asyncResult)
src\Shared\TaskToApm.cs (4)
32public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) => 37public static void End(IAsyncResult asyncResult) 50public static TResult End<TResult>(IAsyncResult asyncResult) 117public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle;
Microsoft.AspNetCore.Server.Kestrel.Core (26)
Internal\Http\HttpRequestStream.cs (2)
90public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 96public override int EndRead(IAsyncResult asyncResult)
Internal\Http\HttpResponseStream.cs (2)
82public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 87public override void EndWrite(IAsyncResult asyncResult)
Internal\Http\HttpUpgradeStream.cs (4)
118public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 123public override int EndRead(IAsyncResult asyncResult) 128public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 133public override void EndWrite(IAsyncResult asyncResult)
Internal\Infrastructure\StatusCheckWriteStream.cs (2)
100public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 106public override void EndWrite(IAsyncResult asyncResult)
Internal\Infrastructure\WrappingStream.cs (4)
89public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 92public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 95public override int EndRead(IAsyncResult asyncResult) 98public override void EndWrite(IAsyncResult asyncResult)
Middleware\Internal\LoggingStream.cs (4)
228public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 233public override int EndRead(IAsyncResult asyncResult) 238public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 243public override void EndWrite(IAsyncResult asyncResult)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (4)
153public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 158public override int EndRead(IAsyncResult asyncResult) 163public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 168public override void EndWrite(IAsyncResult asyncResult)
src\Shared\TaskToApm.cs (4)
32public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) => 37public static void End(IAsyncResult asyncResult) 50public static TResult End<TResult>(IAsyncResult asyncResult) 117public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle;
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
src\Shared\TaskToApm.cs (4)
32public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) => 37public static void End(IAsyncResult asyncResult) 50public static TResult End<TResult>(IAsyncResult asyncResult) 117public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle;
Microsoft.AspNetCore.Shared.Tests (10)
src\Shared\SegmentWriteStream.cs (2)
180public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 183public override void EndWrite(IAsyncResult asyncResult)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (4)
153public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 158public override int EndRead(IAsyncResult asyncResult) 163public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 168public override void EndWrite(IAsyncResult asyncResult)
src\Shared\TaskToApm.cs (4)
32public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) => 37public static void End(IAsyncResult asyncResult) 50public static TResult End<TResult>(IAsyncResult asyncResult) 117public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle;
Microsoft.AspNetCore.TestHost (4)
AsyncStreamWrapper.cs (4)
62public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 67public override int EndRead(IAsyncResult asyncResult) 92public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 97public override void EndWrite(IAsyncResult asyncResult)
Microsoft.AspNetCore.WebSockets (4)
AbortStream.cs (4)
65public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 70public override int EndRead(IAsyncResult asyncResult) 75public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 80public override void EndWrite(IAsyncResult asyncResult)
Microsoft.AspNetCore.WebSockets.Tests (8)
BufferStream.cs (4)
152public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state) 159public override int EndRead(IAsyncResult asyncResult) 243public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state) 256public override void EndWrite(IAsyncResult asyncResult) { }
DuplexStream.cs (4)
90public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state) 95public override int EndRead(IAsyncResult asyncResult) 130public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state) 135public override void EndWrite(IAsyncResult asyncResult)
Microsoft.Build (4)
BackEnd\Client\MSBuildClientPacketPump.cs (2)
223((IAsyncResult)readTask).AsyncWaitHandle 317handles[1] = ((IAsyncResult)readTask).AsyncWaitHandle;
NodeEndpointOutOfProcBase.cs (2)
624((IAsyncResult)readTask).AsyncWaitHandle, 712handles[0] = ((IAsyncResult)readTask).AsyncWaitHandle;
Microsoft.CodeAnalysis (1)
SpecialType.cs (1)
242/// Indicates that the type is <see cref="IAsyncResult"/>.
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
src\Compilers\Core\Portable\SpecialType.cs (1)
242/// Indicates that the type is <see cref="IAsyncResult"/>.
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (4)
Remote\InProcRemostHostClient.cs (4)
311public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => _stream.BeginRead(buffer, offset, count, callback, state); 312public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => _stream.BeginWrite(buffer, offset, count, callback, state); 317public override int EndRead(IAsyncResult asyncResult) => _stream.EndRead(asyncResult); 318public override void EndWrite(IAsyncResult asyncResult) => _stream.EndWrite(asyncResult);
Microsoft.DotNet.Helix.Client (4)
generated-code\HelixApi.cs (4)
496public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state) 501public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state) 516public override int EndRead(IAsyncResult asyncResult) 521public override void EndWrite(IAsyncResult asyncResult)
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\StackGuard.cs (1)
74((IAsyncResult)task).AsyncWaitHandle.WaitOne();
Microsoft.Svcutil.NamedPipeMetadataImporter (4)
IMetadataExchange.cs (2)
18IAsyncResult BeginGet(Message request, AsyncCallback callback, object state); 19Message EndGet(IAsyncResult result);
NamedPipeMetadataImporter.cs (2)
44IAsyncResult result = proxy.BeginGet(_message, new AsyncCallback(ar => 75public void RequestCallback(IAsyncResult result, TaskCompletionSource<XmlReader> tcs)
MSBuild (2)
NodeEndpointOutOfProcBase.cs (2)
624((IAsyncResult)readTask).AsyncWaitHandle, 712handles[0] = ((IAsyncResult)readTask).AsyncWaitHandle;
MSBuildTaskHost (2)
NodeEndpointOutOfProcBase.cs (2)
387IAsyncResult resultForConnection = localPipeServer.BeginWaitForConnection(null, null); 616IAsyncResult result = localReadPipe.BeginRead(headerByte, 0, headerByte.Length, null, null);
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
288[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IAsyncResult))]
netstandard (1)
netstandard.cs (1)
863[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IAsyncResult))]
PresentationCore (6)
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
489private void ResponseCallback(IAsyncResult ar)
MS\Internal\IO\Packaging\NetStream.cs (1)
497private void ReadCallBack(IAsyncResult ar)
MS\Internal\WpfWebRequestHelper.cs (1)
196internal static WebResponse EndGetResponse(WebRequest request, IAsyncResult ar)
System\IO\Packaging\PackWebResponse.cs (1)
754private void ResponseCallback(IAsyncResult ar)
System\Windows\Media\Imaging\BitmapDownload.cs (2)
232private static void ResponseCallback(IAsyncResult result) 258private static void ReadCallback(IAsyncResult result)
PresentationFramework (11)
MS\Internal\AppModel\BamlStream.cs (4)
111public override IAsyncResult BeginRead( 125public override IAsyncResult BeginWrite( 148IAsyncResult asyncResult 158IAsyncResult asyncResult
MS\Internal\Navigation\BindStream.cs (4)
157public override IAsyncResult BeginRead( 177public override IAsyncResult BeginWrite( 220IAsyncResult asyncResult 231IAsyncResult asyncResult
System\Windows\Documents\PageContent.cs (1)
491private void _RequestPageCallback(IAsyncResult ar)
System\Windows\Navigation\NavigationService.cs (2)
2743private void HandleWebResponseOnRightDispatcher(IAsyncResult ar) 2783private void HandleWebResponse(IAsyncResult ar)
ScenarioTests.Common.Tests (22)
ScenarioTestTypes.cs (6)
871public IAsyncResult BeginEcho(string message, AsyncCallback callback, object asyncState) 875return (IAsyncResult)base.BeginInvoke("Echo", _args, callback, asyncState); 878public string EndEcho(IAsyncResult result) 884public IAsyncResult BeginMessageRequestReply(Message request, AsyncCallback callback, object asyncState) 894IAsyncResult ar = base.BeginInvoke(nameof(Echo), args, callback: null, state: null); 898public Message EndMessageRequestReply(IAsyncResult result)
ServiceInterfaces.cs (16)
208System.IAsyncResult BeginMessageRequestReply(System.ServiceModel.Channels.Message request, System.AsyncCallback callback, object asyncState); 210System.ServiceModel.Channels.Message EndMessageRequestReply(System.IAsyncResult result); 216System.IAsyncResult BeginEcho(string message, System.AsyncCallback callback, object asyncState); 218string EndEcho(System.IAsyncResult result); 259System.IAsyncResult BeginMessageRequestReply(System.ServiceModel.Channels.Message request, System.AsyncCallback callback, object asyncState); 261System.ServiceModel.Channels.Message EndMessageRequestReply(System.IAsyncResult result); 267System.IAsyncResult BeginEcho(string message, System.AsyncCallback callback, object asyncState); 269string EndEcho(System.IAsyncResult result); 523IAsyncResult BeginRequest(string stringRequest, AsyncCallback callback, object asyncState); 525void EndRequest(out int intResponse, IAsyncResult result); 532IAsyncResult BeginRequest(string stringRequest, AsyncCallback callback, object asyncState); 534void EndRequest(out UniqueType uniqueTypeResponse, IAsyncResult result); 541IAsyncResult BeginRequest(string stringRequest, ref int referencedInteger, AsyncCallback callback, object asyncState); 543void EndRequest(ref int referencedInteger, IAsyncResult result); 550IAsyncResult BeginRequest(string stringRequest, ref UniqueType uniqueTypeResponse, AsyncCallback callback, object asyncState); 552void EndRequest(ref UniqueType uniqueTypeResponse, IAsyncResult result);
System.ComponentModel.Primitives (2)
System\ComponentModel\ISynchronizeInvoke.cs (2)
20IAsyncResult BeginInvoke(Delegate method, object?[]? args); 26object? EndInvoke(IAsyncResult result);
System.DirectoryServices.Protocols (5)
artifacts\obj\System.DirectoryServices.Protocols\Debug\net10.0\System.DirectoryServices.Protocols.notsupported.cs (5)
331public void Abort(System.IAsyncResult asyncResult) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } 332public System.IAsyncResult BeginSendRequest(System.DirectoryServices.Protocols.DirectoryRequest request, System.DirectoryServices.Protocols.PartialResultProcessing partialMode, System.AsyncCallback callback, object state) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } 333public System.IAsyncResult BeginSendRequest(System.DirectoryServices.Protocols.DirectoryRequest request, System.TimeSpan requestTimeout, System.DirectoryServices.Protocols.PartialResultProcessing partialMode, System.AsyncCallback callback, object state) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } 338public System.DirectoryServices.Protocols.DirectoryResponse EndSendRequest(System.IAsyncResult asyncResult) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } 340public System.DirectoryServices.Protocols.PartialResultsCollection GetPartialResults(System.IAsyncResult asyncResult) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); }
System.IO.Compression (16)
System\IO\Compression\DeflateManaged\DeflateManagedStream.cs (2)
154public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState) => 157public override int EndRead(IAsyncResult asyncResult) =>
System\IO\Compression\DeflateZLib\DeflateStream.cs (4)
393public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState) => 396public override int EndRead(IAsyncResult asyncResult) 800public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState) => 803public override void EndWrite(IAsyncResult asyncResult)
System\IO\Compression\GZipStream.cs (4)
86public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState) => 89public override int EndRead(IAsyncResult asyncResult) => 114public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState) => 117public override void EndWrite(IAsyncResult asyncResult) =>
System\IO\Compression\PositionPreservingWriteOnlyStreamWrapper.cs (2)
44public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 50public override void EndWrite(IAsyncResult asyncResult) => _stream.EndWrite(asyncResult);
System\IO\Compression\ZLibStream.cs (4)
116public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState) 125public override int EndRead(IAsyncResult asyncResult) => 177public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState) 185public override void EndWrite(IAsyncResult asyncResult) =>
System.IO.Compression.Brotli (4)
System\IO\Compression\dec\BrotliStream.Decompress.cs (2)
98public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState) => 107public override int EndRead(IAsyncResult asyncResult) =>
System\IO\Compression\enc\BrotliStream.Compress.cs (2)
112public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState) => 118public override void EndWrite(IAsyncResult asyncResult) =>
System.IO.Hashing (2)
System\IO\Hashing\NonCryptographicHashAlgorithm.cs (2)
341public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 344public override void EndWrite(IAsyncResult asyncResult) =>
System.IO.IsolatedStorage (4)
System\IO\IsolatedStorage\IsolatedStorageFileStream.cs (4)
303public override IAsyncResult BeginRead(byte[] array, int offset, int numBytes, AsyncCallback? userCallback, object? stateObject) 308public override IAsyncResult BeginWrite(byte[] array, int offset, int numBytes, AsyncCallback? userCallback, object? stateObject) 313public override int EndRead(IAsyncResult asyncResult) 318public override void EndWrite(IAsyncResult asyncResult)
System.IO.Pipelines (4)
System\IO\Pipelines\PipeReaderStream.cs (2)
77public sealed override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 80public sealed override int EndRead(IAsyncResult asyncResult) =>
System\IO\Pipelines\PipeWriterStream.cs (2)
63public sealed override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 66public sealed override void EndWrite(IAsyncResult asyncResult) =>
System.IO.Pipes (6)
System\IO\Pipes\NamedPipeServerStream.cs (2)
162public IAsyncResult BeginWaitForConnection(AsyncCallback? callback, object? state) => 165public void EndWaitForConnection(IAsyncResult asyncResult) =>
System\IO\Pipes\PipeStream.Unix.cs (4)
105public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 108public override int EndRead(IAsyncResult asyncResult) 179public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 182public override void EndWrite(IAsyncResult asyncResult)
System.IO.Ports (5)
System\IO\Ports\SerialStream.Unix.cs (5)
440public override int EndRead(IAsyncResult asyncResult) 521public override IAsyncResult BeginRead(byte[] array, int offset, int numBytes, AsyncCallback userCallback, object stateObject) 577public override IAsyncResult BeginWrite(byte[] array, int offset, int count, AsyncCallback userCallback, object stateObject) 582public override void EndWrite(IAsyncResult asyncResult) 585private static int EndReadWrite(IAsyncResult asyncResult)
System.Linq.Expressions (1)
System\Linq\Expressions\StackGuard.cs (1)
74((IAsyncResult)task).AsyncWaitHandle.WaitOne();
System.Memory.Data (2)
src\libraries\Common\src\System\IO\ReadOnlyMemoryStream.cs (2)
145public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 148public override int EndRead(IAsyncResult asyncResult)
System.Net.Http (16)
src\libraries\Common\src\System\IO\DelegatingStream.cs (4)
115public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 120public override int EndRead(IAsyncResult asyncResult) 179public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 184public override void EndWrite(IAsyncResult asyncResult)
src\libraries\Common\src\System\IO\ReadOnlyMemoryStream.cs (2)
145public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 148public override int EndRead(IAsyncResult asyncResult)
System\Net\Http\HttpBaseStream.cs (4)
15public sealed override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 18public sealed override int EndRead(IAsyncResult asyncResult) => 21public sealed override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 24public sealed override void EndWrite(IAsyncResult asyncResult) =>
System\Net\Http\HttpContent.cs (2)
1115public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState) => 1118public override void EndWrite(IAsyncResult asyncResult) =>
System\Net\Http\MultipartContent.cs (2)
529public override IAsyncResult BeginRead(byte[] array, int offset, int count, AsyncCallback? asyncCallback, object? asyncState) => 532public override int EndRead(IAsyncResult asyncResult) =>
System\Net\Http\StreamContent.cs (2)
162public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 165public override void EndWrite(IAsyncResult asyncResult) =>
System.Net.HttpListener (23)
System\Net\HttpListenerRequest.cs (1)
244public IAsyncResult BeginGetClientCertificate(AsyncCallback? requestCallback, object? state)
System\Net\HttpRequestStream.cs (3)
30public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 56public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 61public override void EndWrite(IAsyncResult asyncResult) => throw new InvalidOperationException(SR.net_readonlystream);
System\Net\HttpResponseStream.cs (4)
36public override IAsyncResult BeginRead(byte[] buffer, int offset, int size, AsyncCallback? callback, object? state) 41public override int EndRead(IAsyncResult asyncResult) => throw new InvalidOperationException(SR.net_writeonlystream); 57public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 66public override void EndWrite(IAsyncResult asyncResult)
System\Net\Managed\ChunkedInputStream.cs (4)
75IAsyncResult ares = BeginReadCore(buffer, offset, count, null, null); 79protected override IAsyncResult BeginReadCore(byte[] buffer, int offset, int size, AsyncCallback? cback, object? state) 115private void OnRead(IAsyncResult base_ares) 152public override int EndRead(IAsyncResult asyncResult)
System\Net\Managed\HttpConnection.cs (2)
240private static void OnRead(IAsyncResult ares) 255private void OnReadInternal(IAsyncResult ares)
System\Net\Managed\HttpListener.Managed.cs (2)
273public IAsyncResult BeginGetContext(AsyncCallback? callback, object? state) 302public HttpListenerContext EndGetContext(IAsyncResult asyncResult)
System\Net\Managed\HttpListenerRequest.Managed.cs (2)
270IAsyncResult ares = InputStream.BeginRead(bytes, 0, length, null, null); 356public X509Certificate2? EndGetClientCertificate(IAsyncResult asyncResult)
System\Net\Managed\HttpRequestStream.Managed.cs (2)
129protected virtual IAsyncResult BeginReadCore(byte[] buffer, int offset, int size, AsyncCallback? cback, object? state) 164public override int EndRead(IAsyncResult asyncResult)
System\Net\Managed\HttpResponseStream.Managed.cs (2)
204private IAsyncResult BeginWriteCore(byte[] buffer, int offset, int size, AsyncCallback? cback, object? state) 259private void EndWriteCore(IAsyncResult asyncResult)
System\Net\Managed\ListenerAsyncResult.Managed.cs (1)
159IAsyncResult ares = context._listener!.BeginGetContext(_cb, _state);
System.Net.Mail (4)
System\Net\DelegatedStream.cs (4)
59public sealed override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 63public sealed override int EndRead(IAsyncResult asyncResult) 68public sealed override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 73public sealed override void EndWrite(IAsyncResult asyncResult)
System.Net.NameResolution (9)
System\Net\Dns.cs (9)
173public static IAsyncResult BeginGetHostEntry(IPAddress address, AsyncCallback? requestCallback, object? stateObject) => 176public static IAsyncResult BeginGetHostEntry(string hostNameOrAddress, AsyncCallback? requestCallback, object? stateObject) => 179public static IPHostEntry EndGetHostEntry(IAsyncResult asyncResult) 252public static IAsyncResult BeginGetHostAddresses(string hostNameOrAddress, AsyncCallback? requestCallback, object? state) => 255public static IPAddress[] EndGetHostAddresses(IAsyncResult asyncResult) 278public static IAsyncResult BeginGetHostByName(string hostName, AsyncCallback? requestCallback, object? stateObject) => 282public static IPHostEntry EndGetHostByName(IAsyncResult asyncResult) 347public static IAsyncResult BeginResolve(string hostName, AsyncCallback? requestCallback, object? stateObject) => 351public static IPHostEntry EndResolve(IAsyncResult asyncResult)
System.Net.NetworkInformation (4)
System\Net\NetworkInformation\IPGlobalProperties.cs (2)
67public virtual IAsyncResult BeginGetUnicastAddresses(AsyncCallback? callback, object? state) 72public virtual UnicastIPAddressInformationCollection EndGetUnicastAddresses(IAsyncResult asyncResult)
System\Net\NetworkInformation\UnixIPGlobalProperties.cs (2)
41public override IAsyncResult BeginGetUnicastAddresses(AsyncCallback? callback, object? state) 47public override UnicastIPAddressInformationCollection EndGetUnicastAddresses(IAsyncResult asyncResult)
System.Net.Quic (4)
System\Net\Quic\QuicStream.Stream.cs (4)
92public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 96public override int EndRead(IAsyncResult asyncResult) 155public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 159public override void EndWrite(IAsyncResult asyncResult)
System.Net.Requests (41)
System\Net\CommandStream.cs (2)
404private static void ReadCallback(IAsyncResult asyncResult) 435private static void WriteCallback(IAsyncResult asyncResult)
System\Net\FileWebRequest.cs (10)
157public override IAsyncResult BeginGetRequestStream(AsyncCallback? callback, object? state) 218public override IAsyncResult BeginGetResponse(AsyncCallback? callback, object? state) 238public override Stream EndGetRequestStream(IAsyncResult asyncResult) 245public override WebResponse EndGetResponse(IAsyncResult asyncResult) 254IAsyncResult result = BeginGetRequestStream(null, null); 270IAsyncResult result = BeginGetResponse(null, null); 368public override IAsyncResult BeginRead(byte[] buffer, int offset, int size, AsyncCallback? callback, object? state) 382public override int EndRead(IAsyncResult ar) 395public override IAsyncResult BeginWrite(byte[] buffer, int offset, int size, AsyncCallback? callback, object? state) 409public override void EndWrite(IAsyncResult ar)
System\Net\FtpControlStream.cs (3)
105private static void AcceptCallback(IAsyncResult asyncResult) 133private static void ConnectCallback(IAsyncResult asyncResult) 148private static void SSLHandshakeCallback(IAsyncResult asyncResult)
System\Net\FtpDataStream.cs (5)
248private void AsyncReadCallback(IAsyncResult ar) 273public override IAsyncResult BeginRead(byte[] buffer, int offset, int size, AsyncCallback? callback, object? state) 289public override int EndRead(IAsyncResult ar) 308public override IAsyncResult BeginWrite(byte[] buffer, int offset, int size, AsyncCallback? callback, object? state) 322public override void EndWrite(IAsyncResult asyncResult)
System\Net\FtpWebRequest.cs (4)
605public override IAsyncResult BeginGetResponse(AsyncCallback? callback, object? state) 680public override WebResponse EndGetResponse(IAsyncResult asyncResult) 764public override IAsyncResult BeginGetRequestStream(AsyncCallback? callback, object? state) 801public override Stream EndGetRequestStream(IAsyncResult asyncResult)
System\Net\HttpWebRequest.cs (5)
1134public Stream EndGetRequestStream(IAsyncResult asyncResult, out TransportContext? context) 1146public override IAsyncResult BeginGetRequestStream(AsyncCallback? callback, object? state) 1165public override Stream EndGetRequestStream(IAsyncResult asyncResult) 1423public override IAsyncResult BeginGetResponse(AsyncCallback? callback, object? state) 1438public override WebResponse EndGetResponse(IAsyncResult asyncResult)
System\Net\NetworkStreamWrapper.cs (4)
178public override IAsyncResult BeginRead(byte[] buffer, int offset, int size, AsyncCallback? callback, object? state) 183public override int EndRead(IAsyncResult asyncResult) 198public override IAsyncResult BeginWrite(byte[] buffer, int offset, int size, AsyncCallback? callback, object? state) 203public override void EndWrite(IAsyncResult asyncResult)
System\Net\RequestBufferingStream.cs (2)
91public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState) 98public override void EndWrite(IAsyncResult asyncResult)
System\Net\RequestStream.cs (2)
115public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState) 127public override void EndWrite(IAsyncResult asyncResult)
System\Net\WebRequest.cs (4)
498public virtual IAsyncResult BeginGetResponse(AsyncCallback? callback, object? state) 503public virtual WebResponse EndGetResponse(IAsyncResult asyncResult) 508public virtual IAsyncResult BeginGetRequestStream(AsyncCallback? callback, object? state) 513public virtual Stream EndGetRequestStream(IAsyncResult asyncResult)
System.Net.Security (31)
System\Net\Security\NegotiateStream.cs (15)
102public virtual IAsyncResult BeginAuthenticateAsClient(AsyncCallback? asyncCallback, object? asyncState) => 106public virtual IAsyncResult BeginAuthenticateAsClient(NetworkCredential credential, string targetName, AsyncCallback? asyncCallback, object? asyncState) => 110public virtual IAsyncResult BeginAuthenticateAsClient(NetworkCredential credential, ChannelBinding? binding, string targetName, AsyncCallback? asyncCallback, object? asyncState) => 114public virtual IAsyncResult BeginAuthenticateAsClient( 120public virtual IAsyncResult BeginAuthenticateAsClient( 125public virtual void EndAuthenticateAsClient(IAsyncResult asyncResult) => TaskToAsyncResult.End(asyncResult); 142public virtual IAsyncResult BeginAuthenticateAsServer(AsyncCallback? asyncCallback, object? asyncState) => 145public virtual IAsyncResult BeginAuthenticateAsServer(ExtendedProtectionPolicy? policy, AsyncCallback? asyncCallback, object? asyncState) => 148public virtual IAsyncResult BeginAuthenticateAsServer( 153public virtual IAsyncResult BeginAuthenticateAsServer( 158public virtual void EndAuthenticateAsServer(IAsyncResult asyncResult) => TaskToAsyncResult.End(asyncResult); 563public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState) => 566public override int EndRead(IAsyncResult asyncResult) => 569public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState) => 572public override void EndWrite(IAsyncResult asyncResult) =>
System\Net\Security\SslStream.cs (16)
229public virtual IAsyncResult BeginAuthenticateAsClient(string targetHost, AsyncCallback? asyncCallback, object? asyncState) 235public virtual IAsyncResult BeginAuthenticateAsClient(string targetHost, X509CertificateCollection? clientCertificates, 241public virtual IAsyncResult BeginAuthenticateAsClient(string targetHost, X509CertificateCollection? clientCertificates, 257internal IAsyncResult BeginAuthenticateAsClient(SslClientAuthenticationOptions sslClientAuthenticationOptions, CancellationToken cancellationToken, AsyncCallback? asyncCallback, object? asyncState) => 260public virtual void EndAuthenticateAsClient(IAsyncResult asyncResult) => TaskToAsyncResult.End(asyncResult); 265public virtual IAsyncResult BeginAuthenticateAsServer(X509Certificate serverCertificate, AsyncCallback? asyncCallback, object? asyncState) 273public virtual IAsyncResult BeginAuthenticateAsServer(X509Certificate serverCertificate, bool clientCertificateRequired, 279public virtual IAsyncResult BeginAuthenticateAsServer(X509Certificate serverCertificate, bool clientCertificateRequired, 296private IAsyncResult BeginAuthenticateAsServer(SslServerAuthenticationOptions sslServerAuthenticationOptions, CancellationToken cancellationToken, AsyncCallback? asyncCallback, object? asyncState) => 299public virtual void EndAuthenticateAsServer(IAsyncResult asyncResult) => TaskToAsyncResult.End(asyncResult); 301internal IAsyncResult BeginShutdown(AsyncCallback? asyncCallback, object? asyncState) => TaskToAsyncResult.Begin(ShutdownAsync(), asyncCallback, asyncState); 303internal static void EndShutdown(IAsyncResult asyncResult) => TaskToAsyncResult.End(asyncResult); 844public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState) 850public override int EndRead(IAsyncResult asyncResult) 856public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState) 862public override void EndWrite(IAsyncResult asyncResult)
System.Net.Sockets (55)
System\Net\Sockets\NetworkStream.cs (4)
433public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 468public override int EndRead(IAsyncResult asyncResult) 499public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 531public override void EndWrite(IAsyncResult asyncResult)
System\Net\Sockets\Socket.cs (36)
2448public IAsyncResult BeginConnect(EndPoint remoteEP, AsyncCallback? callback, object? state) => 2451public IAsyncResult BeginConnect(string host, int port, AsyncCallback? requestCallback, object? state) => 2454public IAsyncResult BeginConnect(IPAddress address, int port, AsyncCallback? requestCallback, object? state) => 2457public IAsyncResult BeginConnect(IPAddress[] addresses, int port, AsyncCallback? requestCallback, object? state) => 2460public void EndConnect(IAsyncResult asyncResult) => TaskToAsyncResult.End(asyncResult); 2462public IAsyncResult BeginDisconnect(bool reuseSocket, AsyncCallback? callback, object? state) => 2486public void EndDisconnect(IAsyncResult asyncResult) => TaskToAsyncResult.End(asyncResult); 2488public IAsyncResult BeginSend(byte[] buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback? callback, object? state) 2498public IAsyncResult? BeginSend(byte[] buffer, int offset, int size, SocketFlags socketFlags, out SocketError errorCode, AsyncCallback? callback, object? state) 2516public IAsyncResult BeginSend(IList<ArraySegment<byte>> buffers, SocketFlags socketFlags, AsyncCallback? callback, object? state) 2525public IAsyncResult? BeginSend(IList<ArraySegment<byte>> buffers, SocketFlags socketFlags, out SocketError errorCode, AsyncCallback? callback, object? state) 2542public int EndSend(IAsyncResult asyncResult) => TaskToAsyncResult.End<int>(asyncResult); 2544public int EndSend(IAsyncResult asyncResult, out SocketError errorCode) => 2547public IAsyncResult BeginSendFile(string? fileName, AsyncCallback? callback, object? state) 2554public IAsyncResult BeginSendFile(string? fileName, byte[]? preBuffer, byte[]? postBuffer, TransmitFileOptions flags, AsyncCallback? callback, object? state) 2570public void EndSendFile(IAsyncResult asyncResult) => TaskToAsyncResult.End(asyncResult); 2572public IAsyncResult BeginSendTo(byte[] buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEP, AsyncCallback? callback, object? state) 2584public int EndSendTo(IAsyncResult asyncResult) => TaskToAsyncResult.End<int>(asyncResult); 2586public IAsyncResult BeginReceive(byte[] buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback? callback, object? state) 2595public IAsyncResult? BeginReceive(byte[] buffer, int offset, int size, SocketFlags socketFlags, out SocketError errorCode, AsyncCallback? callback, object? state) 2613public IAsyncResult BeginReceive(IList<ArraySegment<byte>> buffers, SocketFlags socketFlags, AsyncCallback? callback, object? state) 2621public IAsyncResult? BeginReceive(IList<ArraySegment<byte>> buffers, SocketFlags socketFlags, out SocketError errorCode, AsyncCallback? callback, object? state) 2638public int EndReceive(IAsyncResult asyncResult) => TaskToAsyncResult.End<int>(asyncResult); 2640public int EndReceive(IAsyncResult asyncResult, out SocketError errorCode) => 2643private static int EndSendReceive(IAsyncResult asyncResult, out SocketError errorCode) 2661public IAsyncResult BeginReceiveMessageFrom(byte[] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP, AsyncCallback? callback, object? state) 2679IAsyncResult asyncResult = TaskToAsyncResult.Begin(t, callback, state); 2684public int EndReceiveMessageFrom(IAsyncResult asyncResult, ref SocketFlags socketFlags, ref EndPoint endPoint, out IPPacketInformation ipPacketInformation) 2704public IAsyncResult BeginReceiveFrom(byte[] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP, AsyncCallback? callback, object? state) 2724public int EndReceiveFrom(IAsyncResult asyncResult, ref EndPoint endPoint) 2742public IAsyncResult BeginAccept(AsyncCallback? callback, object? state) => 2745public Socket EndAccept(IAsyncResult asyncResult) => TaskToAsyncResult.End<Socket>(asyncResult); 2780public IAsyncResult BeginAccept(int receiveSize, AsyncCallback? callback, object? state) => 2783public IAsyncResult BeginAccept(Socket? acceptSocket, int receiveSize, AsyncCallback? callback, object? state) => 2786public Socket EndAccept(out byte[] buffer, IAsyncResult asyncResult) 2796public Socket EndAccept(out byte[] buffer, out int bytesTransferred, IAsyncResult asyncResult)
System\Net\Sockets\TCPClient.cs (4)
231public IAsyncResult BeginConnect(IPAddress address, int port, AsyncCallback? requestCallback, object? state) => 234public IAsyncResult BeginConnect(string host, int port, AsyncCallback? requestCallback, object? state) => 237public IAsyncResult BeginConnect(IPAddress[] addresses, int port, AsyncCallback? requestCallback, object? state) => 240public void EndConnect(IAsyncResult asyncResult)
System\Net\Sockets\TCPListener.cs (5)
212public IAsyncResult BeginAcceptSocket(AsyncCallback? callback, object? state) => 215public Socket EndAcceptSocket(IAsyncResult asyncResult) => 218public IAsyncResult BeginAcceptTcpClient(AsyncCallback? callback, object? state) => 221public TcpClient EndAcceptTcpClient(IAsyncResult asyncResult) => 291private TResult EndAcceptCore<TResult>(IAsyncResult asyncResult)
System\Net\Sockets\UDPClient.cs (6)
279public IAsyncResult BeginSend(byte[] datagram, int bytes, AsyncCallback? requestCallback, object? state) => 282public IAsyncResult BeginSend(byte[] datagram, int bytes, string? hostname, int port, AsyncCallback? requestCallback, object? state) => 285public IAsyncResult BeginSend(byte[] datagram, int bytes, IPEndPoint? endPoint, AsyncCallback? requestCallback, object? state) 302public int EndSend(IAsyncResult asyncResult) 359public IAsyncResult BeginReceive(AsyncCallback? requestCallback, object? state) 375public byte[] EndReceive(IAsyncResult asyncResult, ref IPEndPoint? remoteEP)
System.Net.WebClient (6)
src\libraries\Common\src\System\IO\DelegatingStream.cs (4)
115public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 120public override int EndRead(IAsyncResult asyncResult) 179public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 184public override void EndWrite(IAsyncResult asyncResult)
src\libraries\Common\src\System\Threading\Tasks\BeginEndAwaitableAdapter.cs (1)
9internal sealed class BeginEndAwaitableAdapter : RendezvousAwaitable<IAsyncResult>
System\Net\WebClient.cs (1)
261protected virtual WebResponse GetWebResponse(WebRequest request, IAsyncResult result)
System.Net.WebSockets (4)
System\Net\WebSockets\WebSocketStream.cs (4)
136public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 140public override int EndRead(IAsyncResult asyncResult) => 156public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 160public override void EndWrite(IAsyncResult asyncResult) =>
System.Private.CoreLib (178)
src\libraries\Common\src\System\Threading\Tasks\TaskToAsyncResult.cs (24)
19/// <summary>Creates a new <see cref="IAsyncResult"/> from the specified <see cref="Task"/>, optionally invoking <paramref name="callback"/> when the task has completed.</summary> 20/// <param name="task">The <see cref="Task"/> to be wrapped in an <see cref="IAsyncResult"/>.</param> 22/// <param name="state">The state to be stored in the <see cref="IAsyncResult"/>.</param> 23/// <returns>An <see cref="IAsyncResult"/> to represent the task's asynchronous operation. This instance will also be passed to <paramref name="callback"/> when it's invoked.</returns> 26/// In conjunction with the <see cref="End(IAsyncResult)"/> or <see cref="End{TResult}(IAsyncResult)"/> methods, this method may be used 32public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) 45/// <summary>Waits for the <see cref="Task"/> wrapped by the <see cref="IAsyncResult"/> returned by <see cref="Begin"/> to complete.</summary> 46/// <param name="asyncResult">The <see cref="IAsyncResult"/> for which to wait.</param> 50public static void End(IAsyncResult asyncResult) => 53/// <summary>Waits for the <see cref="Task{TResult}"/> wrapped by the <see cref="IAsyncResult"/> returned by <see cref="Begin"/> to complete.</summary> 55/// <param name="asyncResult">The <see cref="IAsyncResult"/> for which to wait.</param> 56/// <returns>The result of the <see cref="Task{TResult}"/> wrapped by the <see cref="IAsyncResult"/>.</returns> 60public static TResult End<TResult>(IAsyncResult asyncResult) => 63/// <summary>Extracts the underlying <see cref="Task"/> from an <see cref="IAsyncResult"/> created by <see cref="Begin"/>.</summary> 64/// <param name="asyncResult">The <see cref="IAsyncResult"/> created by <see cref="Begin"/>.</param> 65/// <returns>The <see cref="Task"/> wrapped by the <see cref="IAsyncResult"/>.</returns> 68public static Task Unwrap(IAsyncResult asyncResult) 80/// <summary>Extracts the underlying <see cref="Task{TResult}"/> from an <see cref="IAsyncResult"/> created by <see cref="Begin"/>.</summary> 82/// <param name="asyncResult">The <see cref="IAsyncResult"/> created by <see cref="Begin"/>.</param> 83/// <returns>The <see cref="Task{TResult}"/> wrapped by the <see cref="IAsyncResult"/>.</returns> 90public static Task<TResult> Unwrap<TResult>(IAsyncResult asyncResult) 102/// <summary>Provides a simple <see cref="IAsyncResult"/> that wraps a <see cref="Task"/>.</summary> 155public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle;
src\libraries\System.Private.CoreLib\src\System\AsyncCallback.cs (1)
9public delegate void AsyncCallback(IAsyncResult ar);
src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (4)
727public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 730public override int EndRead(IAsyncResult asyncResult) => 1140public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 1143public override void EndWrite(IAsyncResult asyncResult) =>
src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (8)
546public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 562public override int EndRead(IAsyncResult asyncResult) 569public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 585public override void EndWrite(IAsyncResult asyncResult) 638internal IAsyncResult BaseBeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 641internal int BaseEndRead(IAsyncResult asyncResult) => base.EndRead(asyncResult); 643internal IAsyncResult BaseBeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 646internal void BaseEndWrite(IAsyncResult asyncResult) => base.EndWrite(asyncResult);
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (4)
458public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 461public override int EndRead(IAsyncResult asyncResult) 741public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 744public override void EndWrite(IAsyncResult asyncResult)
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\DerivedFileStreamStrategy.cs (4)
66public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 71public override int EndRead(IAsyncResult asyncResult) 94public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 99public override void EndWrite(IAsyncResult asyncResult)
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\OSFileStreamStrategy.cs (4)
248public sealed override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 251public sealed override void EndWrite(IAsyncResult asyncResult) => 263public sealed override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 266public sealed override int EndRead(IAsyncResult asyncResult) =>
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (12)
199public virtual IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 273public virtual int EndRead(IAsyncResult asyncResult) 473public virtual IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 590public virtual void EndWrite(IAsyncResult asyncResult) 1033public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 1036public override int EndRead(IAsyncResult asyncResult) => 1039public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 1042public override void EndWrite(IAsyncResult asyncResult) => 1211public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 1229public override int EndRead(IAsyncResult asyncResult) 1282public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 1300public override void EndWrite(IAsyncResult asyncResult)
src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (4)
85public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 88public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) 164public override int EndRead(IAsyncResult asyncResult) 167public override void EndWrite(IAsyncResult asyncResult)
src\libraries\System.Private.CoreLib\src\System\Threading\Overlapped.cs (4)
12private IAsyncResult? _asyncResult; 23public Overlapped(int offsetLo, int offsetHi, IntPtr hEvent, IAsyncResult? ar) 32public Overlapped(int offsetLo, int offsetHi, int hEvent, IAsyncResult? ar) 37public IAsyncResult AsyncResult
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\FutureFactory.cs (56)
491IAsyncResult iar, 492Func<IAsyncResult, TResult>? endFunction, 493Action<IAsyncResult>? endAction, 548/// method function when a specified <see cref="IAsyncResult">IAsyncResult</see> completes. 560public Task<TResult> FromAsync(IAsyncResult asyncResult, Func<IAsyncResult, TResult> endMethod) 567/// method function when a specified <see cref="IAsyncResult">IAsyncResult</see> completes. 585IAsyncResult asyncResult, 586Func<IAsyncResult, TResult> endMethod, 596/// method function when a specified <see cref="IAsyncResult">IAsyncResult</see> completes. 618IAsyncResult asyncResult, 619Func<IAsyncResult, TResult> endMethod, 629IAsyncResult asyncResult, 630Func<IAsyncResult, TResult>? endFunction, 631Action<IAsyncResult>? endAction, 714Func<AsyncCallback, object?, IAsyncResult> beginMethod, 715Func<IAsyncResult, TResult> endMethod, object? state) 743Func<AsyncCallback, object?, IAsyncResult> beginMethod, 744Func<IAsyncResult, TResult> endMethod, object? state, TaskCreationOptions creationOptions) 751internal static Task<TResult> FromAsyncImpl(Func<AsyncCallback, object?, IAsyncResult> beginMethod, 752Func<IAsyncResult, TResult>? endFunction, Action<IAsyncResult>? endAction, 776IAsyncResult asyncResult = beginMethod(iar => 825Func<TArg1, AsyncCallback, object?, IAsyncResult> beginMethod, 826Func<IAsyncResult, TResult> endMethod, 859Func<TArg1, AsyncCallback, object?, IAsyncResult> beginMethod, 860Func<IAsyncResult, TResult> endMethod, 868internal static Task<TResult> FromAsyncImpl<TArg1>(Func<TArg1, AsyncCallback, object?, IAsyncResult> beginMethod, 869Func<IAsyncResult, TResult>? endFunction, Action<IAsyncResult>? endAction, 893IAsyncResult asyncResult = beginMethod(arg1, iar => 946Func<TArg1, TArg2, AsyncCallback, object?, IAsyncResult> beginMethod, 947Func<IAsyncResult, TResult> endMethod, 984Func<TArg1, TArg2, AsyncCallback, object?, IAsyncResult> beginMethod, 985Func<IAsyncResult, TResult> endMethod, 993internal static Task<TResult> FromAsyncImpl<TArg1, TArg2>(Func<TArg1, TArg2, AsyncCallback, object?, IAsyncResult> beginMethod, 994Func<IAsyncResult, TResult>? endFunction, Action<IAsyncResult>? endAction, 1018IAsyncResult asyncResult = beginMethod(arg1, arg2, iar => 1075Func<TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult> beginMethod, 1076Func<IAsyncResult, TResult> endMethod, 1117Func<TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult> beginMethod, 1118Func<IAsyncResult, TResult> endMethod, 1126internal static Task<TResult> FromAsyncImpl<TArg1, TArg2, TArg3>(Func<TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult> beginMethod, 1127Func<IAsyncResult, TResult>? endFunction, Action<IAsyncResult>? endAction, 1151IAsyncResult asyncResult = beginMethod(arg1, arg2, arg3, iar => 1192Func<TInstance, TArgs, AsyncCallback, object, IAsyncResult> beginMethod, 1193Func<TInstance, IAsyncResult, TResult> endMethod) 1206IAsyncResult asyncResult = beginMethod(thisRef, args, FromAsyncTrimPromise<TInstance>.s_completeFromAsyncResult, promise); 1233private Func<TInstance, IAsyncResult, TResult>? m_endMethod; 1238internal FromAsyncTrimPromise(TInstance thisRef, Func<TInstance, IAsyncResult, TResult> endMethod) 1251internal static void CompleteFromAsyncResult(IAsyncResult asyncResult) 1261Func<TInstance, IAsyncResult, TResult>? endMethod = promise.m_endMethod; 1284TInstance thisRef, Func<TInstance, IAsyncResult, TResult> endMethod, IAsyncResult asyncResult,
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (3)
1417/// should be preferred over using <see cref="IAsyncResult.AsyncWaitHandle"/> for similar 1423WaitHandle IAsyncResult.AsyncWaitHandle 1448bool IAsyncResult.CompletedSynchronously => false;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (50)
780/// when a specified <see cref="IAsyncResult">IAsyncResult</see> completes. 793IAsyncResult asyncResult, 794Action<IAsyncResult> endMethod) 801/// when a specified <see cref="IAsyncResult">IAsyncResult</see> completes. 819IAsyncResult asyncResult, 820Action<IAsyncResult> endMethod, 828/// when a specified <see cref="IAsyncResult">IAsyncResult</see> completes. 850IAsyncResult asyncResult, 851Action<IAsyncResult> endMethod, 876Func<AsyncCallback, object?, IAsyncResult> beginMethod, 877Action<IAsyncResult> endMethod, 906Func<AsyncCallback, object?, IAsyncResult> beginMethod, 907Action<IAsyncResult> endMethod, object? state, TaskCreationOptions creationOptions) 935Func<TArg1, AsyncCallback, object?, IAsyncResult> beginMethod, 936Action<IAsyncResult> endMethod, 971Func<TArg1, AsyncCallback, object?, IAsyncResult> beginMethod, 972Action<IAsyncResult> endMethod, 1005Func<TArg1, TArg2, AsyncCallback, object?, IAsyncResult> beginMethod, 1006Action<IAsyncResult> endMethod, 1044Func<TArg1, TArg2, AsyncCallback, object?, IAsyncResult> beginMethod, 1045Action<IAsyncResult> endMethod, 1082Func<TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult> beginMethod, 1083Action<IAsyncResult> endMethod, 1125Func<TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult> beginMethod, 1126Action<IAsyncResult> endMethod, 1138/// method function when a specified <see cref="IAsyncResult">IAsyncResult</see> completes. 1154IAsyncResult asyncResult, Func<IAsyncResult, TResult> endMethod) 1161/// method function when a specified <see cref="IAsyncResult">IAsyncResult</see> completes. 1182IAsyncResult asyncResult, Func<IAsyncResult, TResult> endMethod, TaskCreationOptions creationOptions) 1189/// method function when a specified <see cref="IAsyncResult">IAsyncResult</see> completes. 1214IAsyncResult asyncResult, Func<IAsyncResult, TResult> endMethod, TaskCreationOptions creationOptions, TaskScheduler scheduler) 1240Func<AsyncCallback, object?, IAsyncResult> beginMethod, 1241Func<IAsyncResult, TResult> endMethod, object? state) 1272Func<AsyncCallback, object?, IAsyncResult> beginMethod, 1273Func<IAsyncResult, TResult> endMethod, object? state, TaskCreationOptions creationOptions) 1303Func<TArg1, AsyncCallback, object?, IAsyncResult> beginMethod, 1304Func<IAsyncResult, TResult> endMethod, TArg1 arg1, object? state) 1338public Task<TResult> FromAsync<TArg1, TResult>(Func<TArg1, AsyncCallback, object?, IAsyncResult> beginMethod, 1339Func<IAsyncResult, TResult> endMethod, TArg1 arg1, object? state, TaskCreationOptions creationOptions) 1372public Task<TResult> FromAsync<TArg1, TArg2, TResult>(Func<TArg1, TArg2, AsyncCallback, object?, IAsyncResult> beginMethod, 1373Func<IAsyncResult, TResult> endMethod, TArg1 arg1, TArg2 arg2, object? state) 1412Func<TArg1, TArg2, AsyncCallback, object?, IAsyncResult> beginMethod, 1413Func<IAsyncResult, TResult> endMethod, TArg1 arg1, TArg2 arg2, object? state, TaskCreationOptions creationOptions) 1451Func<TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult> beginMethod, 1452Func<IAsyncResult, TResult> endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object? state) 1495Func<TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult> beginMethod, 1496Func<IAsyncResult, TResult> endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object? state, TaskCreationOptions creationOptions)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
266[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IAsyncResult))]
System.Security.Cryptography (4)
System\Security\Cryptography\CryptoStream.cs (4)
251public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 254public override int EndRead(IAsyncResult asyncResult) => 490public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => 493public override void EndWrite(IAsyncResult asyncResult) =>
System.ServiceModel.Federation (57)
System\IdentityModel\Security\WrapperSecurityCommunicationObject.cs (20)
50protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 55protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 77protected override void OnEndClose(IAsyncResult result) 82protected override void OnEndOpen(IAsyncResult result) 234public IAsyncResult BeginClose(AsyncCallback callback, object state) 239public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 244public void EndClose(IAsyncResult result) 259public IAsyncResult BeginOpen(AsyncCallback callback, object state) 264public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 269public void EndOpen(IAsyncResult result) 386public IAsyncResult BeginClose(AsyncCallback callback, object state) 391public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 396public void EndClose(IAsyncResult result) 411public IAsyncResult BeginOpen(AsyncCallback callback, object state) 416public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 421public void EndOpen(IAsyncResult result) 436public IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 441public IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 463public void OnEndClose(IAsyncResult result) 468public void OnEndOpen(IAsyncResult result)
System\Runtime\OperationWithTimeoutAsyncResult.cs (12)
49public static void End(IAsyncResult result) 63private Func<IAsyncResult, bool> _checkSyncValidationFunc; 122protected Action<AsyncCallback, IAsyncResult> VirtualCallback 205private static void AsyncCompletionWrapperCallback(IAsyncResult result) 251protected virtual bool OnContinueAsyncCompletion(IAsyncResult result) 263protected void SetCheckSyncValidationFunc(Func<IAsyncResult, bool> checkSyncValidationFunc) 283protected bool CheckSyncContinue(IAsyncResult result) 289protected bool SyncContinue(IAsyncResult result) 302private bool TryContinueHelper(IAsyncResult result, out AsyncCompletion callback) 337protected static void ThrowInvalidAsyncResult(IAsyncResult result) 354protected static TAsyncResult End<TAsyncResult>(IAsyncResult result) 399protected delegate bool AsyncCompletion(IAsyncResult result);
System\Runtime\TaskHelpers.cs (4)
128public static TResult ToApmEnd<TResult>(this IAsyncResult iar) 137public static void ToApmEnd(this IAsyncResult iar) 152((IAsyncResult)task).AsyncWaitHandle.WaitOne(); 172completed = ((IAsyncResult)task).AsyncWaitHandle.WaitOne(timeout);
System\ServiceModel\Federation\WSTrustChannel.cs (12)
225/// <returns>The <see cref="IAsyncResult" /> that references the asynchronous close operation.</returns> 226IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 242/// <returns>The <see cref="IAsyncResult" /> that references the asynchronous close operation.</returns> 243IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state) 262/// <returns>The <see cref="IAsyncResult" /> that references the asynchronous open operation.</returns> 263IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 279/// <returns>The <see cref="IAsyncResult" /> that references the asynchronous open operation.</returns> 280IAsyncResult ICommunicationObject.BeginOpen(AsyncCallback callback, object state) 307/// <param name="result">The <see cref="IAsyncResult" /> that is returned by a call to the BeginClose() method.</param> 308void ICommunicationObject.EndClose(IAsyncResult result) 316/// <param name="result">The <see cref="IAsyncResult" /> that is returned by a call to the BeginClose() method.</param> 317void ICommunicationObject.EndOpen(IAsyncResult result)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (9)
212/// <returns>A <see cref="IAsyncResult"/>.</returns> 213protected override IAsyncResult BeginGetTokenCore(TimeSpan timeout, AsyncCallback callback, object state) 222protected override SecurityToken EndGetTokenCore(IAsyncResult result) 538IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state) 543IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 548void ICommunicationObject.EndClose(IAsyncResult result) 563IAsyncResult ICommunicationObject.BeginOpen(AsyncCallback callback, object state) 568IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 573void ICommunicationObject.EndOpen(IAsyncResult result)
System.ServiceModel.NetFramingBase (36)
System\ServiceModel\Channels\Connection.cs (2)
221public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state) 228public override void EndWrite(IAsyncResult asyncResult) => asyncResult.ToApmEnd();
System\ServiceModel\Channels\FramingChannels.cs (2)
187protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 192protected override void OnEndOpen(IAsyncResult result)
System\ServiceModel\Channels\NetFramingTransportChannelFactory.cs (4)
216protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) => OnCloseAsync(timeout).ToApm(callback, state); 218protected override void OnEndClose(IAsyncResult result) => result.ToApmEnd(); 312protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 317protected override void OnEndOpen(IAsyncResult result)
System\ServiceModel\Channels\OutputChannel.cs (3)
21public IAsyncResult BeginSend(Message message, AsyncCallback callback, object state) 26public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) 45public void EndSend(IAsyncResult result)
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (4)
171protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 176protected override void OnEndClose(IAsyncResult result) 223protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 228protected override void OnEndOpen(IAsyncResult result)
System\ServiceModel\Channels\StreamedFramingRequestChannel.cs (4)
36protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) => Task.CompletedTask.ToApm(callback, state); 38protected override void OnEndOpen(IAsyncResult result) => result.ToApmEnd(); 120protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) => WaitForPendingRequestsAsync(timeout).ToApm(callback, state); 122protected override void OnEndClose(IAsyncResult result) => result.ToApmEnd();
System\ServiceModel\Channels\TransportChannelFactory.cs (1)
112protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (12)
106public IAsyncResult BeginReceive(AsyncCallback callback, object state) 111public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) 116public Message EndReceive(IAsyncResult result) 121public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) 126public bool EndTryReceive(IAsyncResult result, out Message message) 210public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) 215public bool EndWaitForMessage(IAsyncResult result) 322protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 327protected override void OnEndClose(IAsyncResult result) 619public IAsyncResult BeginCloseOutputSession(AsyncCallback callback, object state) 624public IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state) 629public void EndCloseOutputSession(IAsyncResult result)
System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (4)
69protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 74protected override void OnEndClose(IAsyncResult result) 88protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 93protected override void OnEndOpen(IAsyncResult result)
System.ServiceModel.Primitives (89)
netstandard.cs (89)
199public System.IAsyncResult BeginGetToken(System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default; } 200public System.IdentityModel.Tokens.SecurityToken EndGetToken(System.IAsyncResult result) { return default; } 202public System.IAsyncResult BeginRenewToken(System.TimeSpan timeout, System.IdentityModel.Tokens.SecurityToken tokenToBeRenewed, System.AsyncCallback callback, object state) { return default; } 203public System.IdentityModel.Tokens.SecurityToken EndRenewToken(System.IAsyncResult result) { return default; } 205public System.IAsyncResult BeginCancelToken(System.TimeSpan timeout, System.IdentityModel.Tokens.SecurityToken token, System.AsyncCallback callback, object state) { return default; } 206public void EndCancelToken(System.IAsyncResult result) { } 210protected virtual System.IAsyncResult BeginGetTokenCore(System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default; } 211protected virtual System.IdentityModel.Tokens.SecurityToken EndGetTokenCore(System.IAsyncResult result) { return default; } 212protected virtual System.IAsyncResult BeginRenewTokenCore(System.TimeSpan timeout, System.IdentityModel.Tokens.SecurityToken tokenToBeRenewed, System.AsyncCallback callback, object state) { return default; } 213protected virtual System.IdentityModel.Tokens.SecurityToken EndRenewTokenCore(System.IAsyncResult result) { return default; } 214protected virtual System.IAsyncResult BeginCancelTokenCore(System.TimeSpan timeout, System.IdentityModel.Tokens.SecurityToken token, System.AsyncCallback callback, object state) { return default; } 215protected virtual void EndCancelTokenCore(System.IAsyncResult result) { } 444protected override System.IAsyncResult OnBeginClose(System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default; } 445protected override System.IAsyncResult OnBeginOpen(System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default; } 447protected override void OnEndClose(System.IAsyncResult result) { } 448protected override void OnEndOpen(System.IAsyncResult result) { } 495System.IAsyncResult System.ServiceModel.ICommunicationObject.BeginClose(System.AsyncCallback callback, object state) { return default; } 496System.IAsyncResult System.ServiceModel.ICommunicationObject.BeginClose(System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default; } 497System.IAsyncResult System.ServiceModel.ICommunicationObject.BeginOpen(System.AsyncCallback callback, object state) { return default; } 498System.IAsyncResult System.ServiceModel.ICommunicationObject.BeginOpen(System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default; } 501void System.ServiceModel.ICommunicationObject.EndClose(System.IAsyncResult result) { } 502void System.ServiceModel.ICommunicationObject.EndOpen(System.IAsyncResult result) { } 506protected delegate System.IAsyncResult BeginOperationDelegate(object[] inValues, System.AsyncCallback asyncCallback, object state); 532protected System.IAsyncResult BeginInvoke(string methodName, object[] args, System.AsyncCallback callback, object state) { return default; } 533protected object EndInvoke(string methodName, object[] args, System.IAsyncResult result) { return default; } 536System.IAsyncResult System.ServiceModel.Channels.IOutputChannel.BeginSend(System.ServiceModel.Channels.Message message, System.AsyncCallback callback, object state) { return default; } 537System.IAsyncResult System.ServiceModel.Channels.IOutputChannel.BeginSend(System.ServiceModel.Channels.Message message, System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default; } 538void System.ServiceModel.Channels.IOutputChannel.EndSend(System.IAsyncResult result) { } 541System.IAsyncResult System.ServiceModel.Channels.IRequestChannel.BeginRequest(System.ServiceModel.Channels.Message message, System.AsyncCallback callback, object state) { return default; } 542System.IAsyncResult System.ServiceModel.Channels.IRequestChannel.BeginRequest(System.ServiceModel.Channels.Message message, System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default; } 543System.ServiceModel.Channels.Message System.ServiceModel.Channels.IRequestChannel.EndRequest(System.IAsyncResult result) { return default; } 547System.IAsyncResult System.ServiceModel.IClientChannel.BeginDisplayInitializationUI(System.AsyncCallback callback, object state) { return default; } 551void System.ServiceModel.IClientChannel.EndDisplayInitializationUI(System.IAsyncResult result) { } 553System.IAsyncResult System.ServiceModel.ICommunicationObject.BeginClose(System.AsyncCallback callback, object state) { return default; } 554System.IAsyncResult System.ServiceModel.ICommunicationObject.BeginClose(System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default; } 555System.IAsyncResult System.ServiceModel.ICommunicationObject.BeginOpen(System.AsyncCallback callback, object state) { return default; } 556System.IAsyncResult System.ServiceModel.ICommunicationObject.BeginOpen(System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default; } 559void System.ServiceModel.ICommunicationObject.EndClose(System.IAsyncResult result) { } 560void System.ServiceModel.ICommunicationObject.EndOpen(System.IAsyncResult result) { } 564protected delegate object[] EndOperationDelegate(System.IAsyncResult result); 791System.IAsyncResult BeginDisplayInitializationUI(System.AsyncCallback callback, object state); 793void EndDisplayInitializationUI(System.IAsyncResult result); 804System.IAsyncResult BeginClose(System.AsyncCallback callback, object state); 805System.IAsyncResult BeginClose(System.TimeSpan timeout, System.AsyncCallback callback, object state); 806System.IAsyncResult BeginOpen(System.AsyncCallback callback, object state); 807System.IAsyncResult BeginOpen(System.TimeSpan timeout, System.AsyncCallback callback, object state); 810void EndClose(System.IAsyncResult result); 811void EndOpen(System.IAsyncResult result); 1084protected override System.IAsyncResult OnBeginClose(System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default(System.IAsyncResult); } 1085protected override System.IAsyncResult OnBeginOpen(System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default(System.IAsyncResult); } 1088protected override void OnEndClose(System.IAsyncResult result) { } 1089protected override void OnEndOpen(System.IAsyncResult result) { } 1336protected override System.IAsyncResult OnBeginClose(System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default; } 1338protected override void OnEndClose(System.IAsyncResult result) { } 1347protected override System.IAsyncResult OnBeginClose(System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default; } 1350protected override void OnEndClose(System.IAsyncResult result) { } 1389public System.IAsyncResult BeginClose(System.AsyncCallback callback, object state) { return default; } 1390public System.IAsyncResult BeginClose(System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default; } 1391public System.IAsyncResult BeginOpen(System.AsyncCallback callback, object state) { return default; } 1392public System.IAsyncResult BeginOpen(System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default; } 1395public void EndClose(System.IAsyncResult result) { } 1396public void EndOpen(System.IAsyncResult result) { } 1400protected abstract System.IAsyncResult OnBeginClose(System.TimeSpan timeout, System.AsyncCallback callback, object state); 1401protected abstract System.IAsyncResult OnBeginOpen(System.TimeSpan timeout, System.AsyncCallback callback, object state); 1405protected abstract void OnEndClose(System.IAsyncResult result); 1406protected abstract void OnEndOpen(System.IAsyncResult result); 1462System.IAsyncResult BeginCloseOutputSession(System.AsyncCallback callback, object state); 1463System.IAsyncResult BeginCloseOutputSession(System.TimeSpan timeout, System.AsyncCallback callback, object state); 1466void EndCloseOutputSession(System.IAsyncResult result); 1474System.IAsyncResult BeginReceive(System.AsyncCallback callback, object state); 1475System.IAsyncResult BeginReceive(System.TimeSpan timeout, System.AsyncCallback callback, object state); 1476System.IAsyncResult BeginTryReceive(System.TimeSpan timeout, System.AsyncCallback callback, object state); 1477System.IAsyncResult BeginWaitForMessage(System.TimeSpan timeout, System.AsyncCallback callback, object state); 1478System.ServiceModel.Channels.Message EndReceive(System.IAsyncResult result); 1479bool EndTryReceive(System.IAsyncResult result, out System.ServiceModel.Channels.Message message); 1480bool EndWaitForMessage(System.IAsyncResult result); 1500System.IAsyncResult BeginSend(System.ServiceModel.Channels.Message message, System.AsyncCallback callback, object state); 1501System.IAsyncResult BeginSend(System.ServiceModel.Channels.Message message, System.TimeSpan timeout, System.AsyncCallback callback, object state); 1502void EndSend(System.IAsyncResult result); 1516System.IAsyncResult BeginRequest(System.ServiceModel.Channels.Message message, System.AsyncCallback callback, object state); 1517System.IAsyncResult BeginRequest(System.ServiceModel.Channels.Message message, System.TimeSpan timeout, System.AsyncCallback callback, object state); 1518System.ServiceModel.Channels.Message EndRequest(System.IAsyncResult result); 1817public abstract System.IAsyncResult BeginReply(System.ServiceModel.Channels.Message message, System.AsyncCallback callback, object state); 1818public abstract System.IAsyncResult BeginReply(System.ServiceModel.Channels.Message message, System.TimeSpan timeout, System.AsyncCallback callback, object state); 1822public abstract void EndReply(System.IAsyncResult result); 2235IAsyncResult BeginDisplayInitializationUI(IClientChannel channel, AsyncCallback callback, object state); 2236void EndDisplayInitializationUI(IAsyncResult result);
System.ServiceModel.Primitives.Tests (46)
Channels\CommunicationObjectTest.cs (9)
60IAsyncResult openAr = mco.BeginOpen(timeout, callback: null, state: null); 64IAsyncResult closeAr = mco.BeginClose(timeout, callback: null, state: null); 151IAsyncResult openAr = mco.BeginOpen(timeout, callback: null, state: null); 155IAsyncResult closeAr = mco.BeginClose(timeout, callback: null, state: null); 246IAsyncResult openAr = mco.BeginOpen(timeout, callback: null, state: null); 250IAsyncResult closeAr = mco.BeginClose(timeout, callback: null, state: null); 370IAsyncResult openAr = mco.BeginOpen(timeout, callback: null, state: null); 395IAsyncResult openAr = mco.BeginOpen(timeout, callback: null, state: null); 401IAsyncResult closeAr = mco.BeginClose(timeout, callback: null, state: null);
Channels\CustomChannelTest.cs (3)
151IAsyncResult openResult = factory.BeginOpen(null, null); 167IAsyncResult asyncResult = factory.BeginClose(null, null); 278mockRequestChannel.EndRequestOverride = (IAsyncResult ar) =>
IdentityModel\SecurityTokenProviderTest.cs (9)
32var iar = provider.BeginGetToken(TimeSpan.Zero, null, null); 68var iar = provider.BeginGetToken(TimeSpan.Zero, null, null); 106var iar = provider.BeginGetToken(TimeSpan.Zero, null, null); 160protected override IAsyncResult BeginGetTokenCore(TimeSpan timeout, AsyncCallback callback, object state) 167protected override SecurityToken EndGetTokenCore(IAsyncResult result) 178protected override IAsyncResult BeginRenewTokenCore(TimeSpan timeout, SecurityToken tokenToBeRenewed, AsyncCallback callback, object state) 186protected override SecurityToken EndRenewTokenCore(IAsyncResult result) 197protected override IAsyncResult BeginCancelTokenCore(TimeSpan timeout, SecurityToken token, AsyncCallback callback, object state) 206protected override void EndCancelTokenCore(IAsyncResult result)
ServiceModel\ThrowingChannelBase.cs (4)
41protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) => throw _exception; 43protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) => InnerChannel.BeginOpen(timeout, callback, state); 47protected override void OnEndClose(IAsyncResult result) => InnerChannel.EndClose(result); 49protected override void OnEndOpen(IAsyncResult result) => InnerChannel.EndOpen(result);
ServiceModel\ThrowingOnCloseBindingElement.cs (21)
77protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 82protected override void OnEndOpen(IAsyncResult result) 104protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 109protected override void OnEndClose(IAsyncResult result) 179private static void ToApmEnd(IAsyncResult iar) 194public IAsyncResult BeginSend(Message message, AsyncCallback callback, object state) => InnerChannel.BeginSend(message, callback, state); 195public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) => InnerChannel.BeginSend(message, timeout, callback, state); 196public void EndSend(IAsyncResult result) => InnerChannel.EndSend(result); 211public IAsyncResult BeginRequest(Message message, AsyncCallback callback, object state) => InnerChannel.BeginRequest(message, callback, state); 212public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) => InnerChannel.BeginRequest(message, timeout, callback, state); 213public Message EndRequest(IAsyncResult result) => InnerChannel.EndRequest(result); 255public IAsyncResult BeginReceive(AsyncCallback callback, object state) => InnerChannel.BeginReceive(callback, state); 256public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) => InnerChannel.BeginReceive(timeout, callback, state); 257public Message EndReceive(IAsyncResult result) => InnerChannel.EndReceive(result); 259public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) => InnerChannel.BeginTryReceive(timeout, callback, state); 260public bool EndTryReceive(IAsyncResult result, out Message message) => InnerChannel.EndTryReceive(result, out message); 262public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) => InnerChannel.BeginWaitForMessage(timeout, callback, state); 263public bool EndWaitForMessage(IAsyncResult result) => InnerChannel.EndWaitForMessage(result); 277public IAsyncResult BeginSend(Message message, AsyncCallback callback, object state) => InnerChannel.BeginSend(message, callback, state); 278public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) => InnerChannel.BeginSend(message, callback, state); 279public void EndSend(IAsyncResult result) => InnerChannel.EndSend(result);
System.ServiceModel.UnixDomainSocket (4)
System\ServiceModel\Channels\UnixPosixIdentitySecurityUpgradeProvider.cs (4)
38protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 43protected override void OnEndClose(IAsyncResult result) 57protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 62protected override void OnEndOpen(IAsyncResult result)
System.Transactions.Local (6)
System\Transactions\CommittableTransaction.cs (6)
46public IAsyncResult BeginCommit(AsyncCallback? asyncCallback, object? asyncState) 156public void EndCommit(IAsyncResult asyncResult) 189object? IAsyncResult.AsyncState => _internalTransaction._asyncState; 191bool IAsyncResult.CompletedSynchronously => false; 193WaitHandle IAsyncResult.AsyncWaitHandle 217bool IAsyncResult.IsCompleted
System.Windows.Forms (9)
System\Windows\Forms\Control.cs (7)
4322/// An <see cref="IAsyncResult"/> that represents the result of the <see cref="BeginInvoke(Delegate)"/> operation. 4325public IAsyncResult BeginInvoke(Delegate method) => BeginInvoke(method, null); 4332/// An <see cref="IAsyncResult"/> that represents the result of the <see cref="BeginInvoke(Action)"/> operation. 4335public IAsyncResult BeginInvoke(Action method) => BeginInvoke(method, null); 4354public IAsyncResult BeginInvoke(Delegate method, params object?[]? args) 4358return (IAsyncResult)marshaler.MarshaledInvoke(this, method, args, synchronous: false); 5025public object? EndInvoke(IAsyncResult asyncResult)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (2)
646private void GetResponseCallback(IAsyncResult result) 680private void ReadCallBack(IAsyncResult result)
UnitTests.Common (63)
IMockCommunicationObject.cs (8)
18Func<TimeSpan, AsyncCallback, object, IAsyncResult> OnBeginCloseOverride { get; set; } 19Func<TimeSpan, AsyncCallback, object, IAsyncResult> OnBeginOpenOverride { get; set; } 22Action<IAsyncResult> OnEndCloseOverride { get; set; } 23Action<IAsyncResult> OnEndOpenOverride { get; set; } 40IAsyncResult DefaultOnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state); 41void DefaultOnEndOpen(IAsyncResult result); 43IAsyncResult DefaultOnBeginClose(TimeSpan timeout, AsyncCallback callback, object state); 44void DefaultOnEndClose(IAsyncResult result);
MockChannelBase.cs (12)
58public Func<TimeSpan, AsyncCallback, object, IAsyncResult> OnBeginCloseOverride { get; set; } 59public Func<TimeSpan, AsyncCallback, object, IAsyncResult> OnBeginOpenOverride { get; set; } 62public Action<IAsyncResult> OnEndCloseOverride { get; set; } 63public Action<IAsyncResult> OnEndOpenOverride { get; set; } 118protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 123public IAsyncResult DefaultOnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 138protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 143public IAsyncResult DefaultOnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 168protected override void OnEndClose(IAsyncResult result) 173public void DefaultOnEndClose(IAsyncResult result) 179protected override void OnEndOpen(IAsyncResult result) 184public void DefaultOnEndOpen(IAsyncResult result)
MockChannelFactory.cs (12)
57public Func<TimeSpan, AsyncCallback, object, IAsyncResult> OnBeginCloseOverride { get; set; } 58public Func<TimeSpan, AsyncCallback, object, IAsyncResult> OnBeginOpenOverride { get; set; } 61public Action<IAsyncResult> OnEndCloseOverride { get; set; } 62public Action<IAsyncResult> OnEndOpenOverride { get; set; } 120protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 125public IAsyncResult DefaultOnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 139protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 144public IAsyncResult DefaultOnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 168protected override void OnEndClose(IAsyncResult result) 173public void DefaultOnEndClose(IAsyncResult result) 178protected override void OnEndOpen(IAsyncResult result) 183public void DefaultOnEndOpen(IAsyncResult result)
MockCommunicationObject.cs (14)
53public Func<TimeSpan, AsyncCallback, object, IAsyncResult> OnBeginCloseOverride { get; set; } 54public Func<TimeSpan, AsyncCallback, object, IAsyncResult> OnBeginOpenOverride { get; set; } 57public Action<IAsyncResult> OnEndCloseOverride { get; set; } 58public Action<IAsyncResult> OnEndOpenOverride { get; set; } 103protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 108public IAsyncResult DefaultOnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) 123protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 129public IAsyncResult DefaultOnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 154protected override void OnEndClose(IAsyncResult result) 159public void DefaultOnEndClose(IAsyncResult result) 165protected override void OnEndOpen(IAsyncResult result) 170public void DefaultOnEndOpen(IAsyncResult result) 340IAsyncResult result = mco.DefaultOnBeginOpen(t, c, s); 369IAsyncResult result = mco.DefaultOnBeginClose(t, c, s);
MockInteractiveChannelInitializer.cs (6)
19public Func<IClientChannel, AsyncCallback, object, IAsyncResult> BeginDisplayInitializationUIOverride { get; set; } 20public Action<IAsyncResult> EndDisplayInitializationUIOverride { get; set; } 22public IAsyncResult BeginDisplayInitializationUI(IClientChannel channel, AsyncCallback callback, object state) 27public IAsyncResult DefaultBeginDisplayInitializationUI(IClientChannel channel, AsyncCallback callback, object state) 34public void EndDisplayInitializationUI(IAsyncResult result) 39public void DefaultEndDisplayInitializationUI(IAsyncResult result)
MockRequestChannel.cs (7)
19public Func<Message,TimeSpan,AsyncCallback,object, IAsyncResult> BeginRequestOverride { get; set; } 20public Func<IAsyncResult, Message> EndRequestOverride { get; set; } 49public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 54public IAsyncResult BeginRequest(Message message, AsyncCallback callback, object state) 59public IAsyncResult DefaultBeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 68public Message EndRequest(IAsyncResult result) 73public Message DefaultEndRequest(IAsyncResult result)
ServiceInterfaces.cs (4)
129System.IAsyncResult BeginMessageRequestReply(System.ServiceModel.Channels.Message request, System.AsyncCallback callback, object asyncState); 131System.ServiceModel.Channels.Message EndMessageRequestReply(System.IAsyncResult result); 137System.IAsyncResult BeginEcho(string message, System.AsyncCallback callback, object asyncState); 139string EndEcho(System.IAsyncResult result);