33 implementations of IAsyncResult
dotnet-svcutil-lib (1)
http2cat (1)
IIS.FunctionalTests (1)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (1)
Microsoft.AspNetCore.HttpLogging (1)
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.ResponseCompression (1)
Microsoft.AspNetCore.Server.HttpSys (4)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Microsoft.AspNetCore.Shared.Tests (1)
PresentationFramework (1)
System.DirectoryServices.Protocols (1)
System.Net.HttpListener (3)
System.Net.Requests (1)
System.Private.CoreLib (2)
System.ServiceModel.Federation (1)
System.ServiceModel.Primitives (1)
System.Transactions.Local (1)
System.Windows.Forms (1)
UnitTests.Common (1)
2145 references to IAsyncResult
Client.ClientBase.IntegrationTests (7)
Client.ExpectedExceptions.IntegrationTests (2)
Client.TypedClient.IntegrationTests (3)
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)
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\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\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\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\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\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\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\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\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\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\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\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\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\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\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\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)
http2cat (8)
IIS.FunctionalTests (8)
IIS.LongTests (8)
IIS.NewHandler.FunctionalTests (8)
IIS.NewShim.FunctionalTests (8)
IIS.ShadowCopy.Tests (8)
IISExpress.FunctionalTests (8)
Microsoft.AspNetCore.Components.WebView.WindowsForms (5)
Microsoft.AspNetCore.HttpLogging (12)
Microsoft.AspNetCore.Mvc.Core (4)
Microsoft.AspNetCore.OutputCaching (6)
Microsoft.AspNetCore.RequestDecompression.Tests (1)
Microsoft.AspNetCore.ResponseCaching (8)
Microsoft.AspNetCore.ResponseCompression (6)
Microsoft.AspNetCore.ResponseCompression.Tests (2)
Microsoft.AspNetCore.Server.HttpSys (26)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
Microsoft.AspNetCore.Server.IIS (20)
Microsoft.AspNetCore.Server.Kestrel.Core (26)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
Microsoft.AspNetCore.Shared.Tests (10)
Microsoft.AspNetCore.TestHost (4)
Microsoft.AspNetCore.WebSockets (4)
Microsoft.AspNetCore.WebSockets.Tests (8)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (4)
Remote\InProcRemostHostClient.cs (4)
312public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => _stream.BeginRead(buffer, offset, count, callback, state);
313public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state) => _stream.BeginWrite(buffer, offset, count, callback, state);
318public override int EndRead(IAsyncResult asyncResult) => _stream.EndRead(asyncResult);
319public override void EndWrite(IAsyncResult asyncResult) => _stream.EndWrite(asyncResult);
Microsoft.DotNet.Helix.Client (4)
Microsoft.Extensions.DependencyInjection (1)
Microsoft.Svcutil.NamedPipeMetadataImporter (4)
mscorlib (1)
netstandard (1)
PresentationCore (6)
PresentationFramework (11)
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.DirectoryServices.Protocols (9)
System.IO.Compression (16)
System.IO.Compression.Brotli (4)
System.IO.Hashing (2)
System.IO.IsolatedStorage (4)
System.IO.Pipelines (4)
System.IO.Pipes (6)
System.IO.Ports (5)
System.Linq.Expressions (1)
System.Memory.Data (2)
System.Net.Http (16)
System.Net.HttpListener (23)
System.Net.Mail (4)
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.Quic (4)
System.Net.Requests (41)
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.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\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\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)
System.Net.WebSockets (4)
System.Private.CoreLib (178)
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\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\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\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)
System.Security.Cryptography (4)
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.ServiceModel.Http (26)
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (12)
103public IAsyncResult BeginReceive(AsyncCallback callback, object state)
108public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state)
113public Message EndReceive(IAsyncResult result)
118public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state)
123public bool EndTryReceive(IAsyncResult result, out Message message)
208public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state)
213public bool EndWaitForMessage(IAsyncResult result)
371protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state)
376protected override void OnEndClose(IAsyncResult result)
701public IAsyncResult BeginCloseOutputSession(AsyncCallback callback, object state)
706public IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state)
711public void EndCloseOutputSession(IAsyncResult result)
System.ServiceModel.NetFramingBase (36)
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.Primitives (575)
Internals\System\Runtime\TaskHelpers.cs (7)
143public static TResult ToApmEnd<TResult>(this IAsyncResult iar)
152public static void ToApmEnd(this IAsyncResult iar)
160public delegate TResult EndWithOutDelegate<T1, TResult>(IAsyncResult iar, out T1 arg1);
161public static Task<(TOut1, TOut2)> FromAsync<TIn, TOut1, TOut2>(Func<TIn, AsyncCallback, object, IAsyncResult> beginDelegate, EndWithOutDelegate<TOut2, TOut1> endDelegate, TIn arg1, object state)
269((IAsyncResult)task).AsyncWaitHandle.WaitOne();
291((IAsyncResult)task).AsyncWaitHandle.WaitOne();
311completed = ((IAsyncResult)task).AsyncWaitHandle.WaitOne(timeout);
Internals\System\Xml\XmlMtomReader.cs (6)
2162public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
2172public override void EndWrite(IAsyncResult asyncResult)
2881public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
2889public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
2899public override int EndRead(IAsyncResult asyncResult)
2907public override void EndWrite(IAsyncResult asyncResult)
System\IdentityModel\Selectors\SecurityTokenProvider.cs (12)
39public IAsyncResult BeginGetToken(TimeSpan timeout, AsyncCallback callback, object state)
44public SecurityToken EndGetToken(IAsyncResult result)
73protected virtual IAsyncResult BeginGetTokenCore(TimeSpan timeout, AsyncCallback callback, object state)
78protected virtual SecurityToken EndGetTokenCore(IAsyncResult result)
114public IAsyncResult BeginRenewToken(TimeSpan timeout, SecurityToken tokenToBeRenewed, AsyncCallback callback, object state)
124public SecurityToken EndRenewToken(IAsyncResult result)
161protected virtual IAsyncResult BeginRenewTokenCore(TimeSpan timeout, SecurityToken tokenToBeRenewed, AsyncCallback callback, object state)
166protected virtual SecurityToken EndRenewTokenCore(IAsyncResult result)
193public IAsyncResult BeginCancelToken(TimeSpan timeout, SecurityToken token, AsyncCallback callback, object state)
203public void EndCancelToken(IAsyncResult result)
228protected virtual IAsyncResult BeginCancelTokenCore(TimeSpan timeout, SecurityToken token, AsyncCallback callback, object state)
233protected virtual void EndCancelTokenCore(IAsyncResult result)
System\ServiceModel\Channels\CommunicationObject.cs (13)
192public IAsyncResult BeginClose(AsyncCallback callback, object state)
197public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state)
202public IAsyncResult BeginOpen(AsyncCallback callback, object state)
207public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
399public void EndClose(IAsyncResult result)
404public void EndOpen(IAsyncResult result)
987protected abstract IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state);
989protected abstract void OnEndClose(IAsyncResult result);
993protected abstract IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state);
995protected abstract void OnEndOpen(IAsyncResult result);
1151public static IAsyncResult OnBeginClose(CommunicationObject communicationObject, TimeSpan timeout, AsyncCallback callback, object state)
1156public static void OnEnd(IAsyncResult result)
1166public static IAsyncResult OnBeginOpen(CommunicationObject communicationObject, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Channels\DelegatingStream.cs (4)
87public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state) => ReadAsync(buffer, offset, count).ToApm(callback, state);
88public override int EndRead(IAsyncResult asyncResult) => asyncResult.ToApmEnd<int>();
99public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state) => WriteAsync(buffer, offset, count).ToApm(callback, state);
100public override void EndWrite(IAsyncResult asyncResult) => asyncResult.ToApmEnd();
System\ServiceModel\Channels\DuplexChannel.cs (10)
41public IAsyncResult BeginSend(Message message, AsyncCallback callback, object state)
46public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state)
51public void EndSend(IAsyncResult result)
113public IAsyncResult BeginReceive(AsyncCallback callback, object state)
118public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state)
123public Message EndReceive(IAsyncResult result)
145public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state)
150public bool EndTryReceive(IAsyncResult result, out Message message)
172public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state)
177public bool EndWaitForMessage(IAsyncResult result)
System\ServiceModel\Channels\LayeredChannelFactory.cs (18)
37protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
42protected override void OnEndOpen(IAsyncResult result)
47protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state)
52protected override void OnEndClose(IAsyncResult result)
157public IAsyncResult BeginReceive(AsyncCallback callback, object state)
162public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state)
167public Message EndReceive(IAsyncResult result)
172public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state)
177public bool EndTryReceive(IAsyncResult result, out Message message)
225public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state)
230public bool EndWaitForMessage(IAsyncResult result)
278protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) => throw ExceptionHelper.PlatformNotSupported();
280protected override void OnEndClose(IAsyncResult result) => throw ExceptionHelper.PlatformNotSupported();
291protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) => throw ExceptionHelper.PlatformNotSupported();
293protected override void OnEndOpen(IAsyncResult result) => throw ExceptionHelper.PlatformNotSupported();
336public IAsyncResult BeginSend(Message message, AsyncCallback callback, object state)
341public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state)
346public void EndSend(IAsyncResult result)
System\ServiceModel\Channels\Message.cs (12)
457public IAsyncResult BeginWriteBodyContents(XmlDictionaryWriter writer, AsyncCallback callback, object state)
463public void EndWriteBodyContents(IAsyncResult result)
476protected virtual IAsyncResult OnBeginWriteBodyContents(XmlDictionaryWriter writer, AsyncCallback callback, object state)
481protected virtual void OnEndWriteBodyContents(IAsyncResult result)
764public IAsyncResult BeginWriteMessage(XmlDictionaryWriter writer, AsyncCallback callback, object state)
770public void EndWriteMessage(IAsyncResult result)
823protected virtual IAsyncResult OnBeginWriteMessage(XmlDictionaryWriter writer, AsyncCallback callback, object state)
828protected virtual void OnEndWriteMessage(IAsyncResult result)
1199protected override IAsyncResult OnBeginWriteMessage(XmlDictionaryWriter writer, AsyncCallback callback, object state)
1206protected override void OnEndWriteMessage(IAsyncResult result)
1211protected override IAsyncResult OnBeginWriteBodyContents(XmlDictionaryWriter writer, AsyncCallback callback, object state)
1216protected override void OnEndWriteBodyContents(IAsyncResult result)
System\ServiceModel\Channels\SecurityChannelFactory.cs (17)
114protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state)
119protected override void OnEndClose(IAsyncResult result)
213protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
218protected override void OnEndOpen(IAsyncResult result)
342public IAsyncResult BeginSend(Message message, AsyncCallback callback, object state)
347public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state)
352public void EndSend(IAsyncResult result)
412public IAsyncResult BeginRequest(Message message, AsyncCallback callback, object state)
417public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state)
422public Message EndRequest(IAsyncResult result)
549public IAsyncResult BeginReceive(AsyncCallback callback, object state)
554public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state)
559public Message EndReceive(IAsyncResult result)
564public virtual IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state)
569public virtual bool EndTryReceive(IAsyncResult result, out Message message)
658public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state)
663public bool EndWaitForMessage(IAsyncResult result)
System\ServiceModel\Channels\ServiceChannel.cs (42)
447private IAsyncResult BeginEnsureDisplayUI(AsyncCallback callback, object state)
460private void EndEnsureDisplayUI(IAsyncResult result)
486private IAsyncResult BeginEnsureOpened(TimeSpan timeout, AsyncCallback callback, object state)
502private void EndEnsureOpened(IAsyncResult result)
666internal static IAsyncResult BeginCall(ServiceChannel channel, ProxyOperationRuntime operation, object[] ins, AsyncCallback callback, object asyncState)
673internal IAsyncResult BeginCall(string action, bool oneway, ProxyOperationRuntime operation, object[] ins, AsyncCallback callback, object asyncState)
678internal IAsyncResult BeginCall(string action, bool oneway, ProxyOperationRuntime operation, object[] ins, TimeSpan timeout, AsyncCallback callback, object asyncState)
782internal object EndCall(string action, object[] outs, IAsyncResult result)
1212public IAsyncResult BeginSend(Message message, AsyncCallback callback, object state)
1217public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state)
1223public void EndSend(IAsyncResult result)
1239public IAsyncResult BeginRequest(Message message, AsyncCallback callback, object state)
1244public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state)
1250public Message EndRequest(IAsyncResult result)
1280protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state)
1285protected override void OnEndClose(IAsyncResult result)
1322protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
1327protected override void OnEndOpen(IAsyncResult result)
1410IAsyncResult IDuplexContextChannel.BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state)
1415void IDuplexContextChannel.EndCloseOutputSession(IAsyncResult result)
1585public IAsyncResult BeginDisplayInitializationUI(AsyncCallback callback, object state)
1597public void EndDisplayInitializationUI(IAsyncResult result)
1724IAsyncResult result = _rpc.Channel.BeginEnsureDisplayUI(s_ensureInteractiveInitCallback, this);
1732private static void EnsureInteractiveInitCallback(IAsyncResult result)
1740private void FinishEnsureInteractiveInit(IAsyncResult result, bool completedSynchronously)
1770IAsyncResult result = null;
1796private static void EnsureOpenCallback(IAsyncResult result)
1804private void FinishEnsureOpen(IAsyncResult result, bool completedSynchronously)
1836IAsyncResult result = null;
1880private static void SendCallback(IAsyncResult result)
1888private void FinishSend(IAsyncResult result, bool completedSynchronously)
1948IAsyncResult BeginCall(ServiceChannel channel, TimeSpan timeout, AsyncCallback callback, object state);
1949void EndCall(ServiceChannel channel, IAsyncResult result);
1983IAsyncResult ICallOnce.BeginCall(ServiceChannel channel, TimeSpan timeout, AsyncCallback callback, object state)
1989void ICallOnce.EndCall(ServiceChannel channel, IAsyncResult result)
2016IAsyncResult ICallOnce.BeginCall(ServiceChannel channel, TimeSpan timeout, AsyncCallback callback, object state)
2021void ICallOnce.EndCall(ServiceChannel channel, IAsyncResult result)
2121internal IAsyncResult BeginCallOnce(TimeSpan timeout, CallOnceManager cascade,
2154IAsyncResult result = _callOnce.BeginCall(_channel, timeout, callback, state);
2176internal void EndCallOnce(IAsyncResult result)
2346internal static void End(IAsyncResult result)
2388static internal void End(IAsyncResult result)
System\ServiceModel\Channels\ServiceChannelProxy.cs (21)
176Action<IAsyncResult> endCallDelegate = (asyncResult) =>
197IAsyncResult ar = ServiceChannel.BeginCall(channel, operation, inputParameters, new AsyncCallback(endCallDelegate), OperationContext.Current);
216Action<IAsyncResult> endCallDelegate = (asyncResult) =>
237IAsyncResult ar = ServiceChannel.BeginCall(channel, operation, inputParameters, new AsyncCallback(endCallDelegate), OperationContext.Current);
378IAsyncResult result;
588IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state)
593IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state)
598void ICommunicationObject.EndClose(IAsyncResult result)
613IAsyncResult ICommunicationObject.BeginOpen(AsyncCallback callback, object state)
618IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
623void ICommunicationObject.EndOpen(IAsyncResult result)
656IAsyncResult IClientChannel.BeginDisplayInitializationUI(AsyncCallback callback, object state)
666void IClientChannel.EndDisplayInitializationUI(IAsyncResult result)
745IAsyncResult IOutputChannel.BeginSend(Message message, AsyncCallback callback, object state)
750IAsyncResult IOutputChannel.BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state)
755void IOutputChannel.EndSend(IAsyncResult result)
780IAsyncResult IRequestChannel.BeginRequest(Message message, AsyncCallback callback, object state)
785IAsyncResult IRequestChannel.BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state)
790Message IRequestChannel.EndRequest(IAsyncResult result)
795public IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state)
800public void EndCloseOutputSession(IAsyncResult result)
System\ServiceModel\ClientBase.cs (26)
614IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state)
619IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state)
624void ICommunicationObject.EndClose(IAsyncResult result)
629IAsyncResult ICommunicationObject.BeginOpen(AsyncCallback callback, object state)
634IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
639void ICommunicationObject.EndOpen(IAsyncResult result)
793protected delegate IAsyncResult BeginOperationDelegate(object[] inValues, AsyncCallback asyncCallback, object state);
794protected delegate object[] EndOperationDelegate(IAsyncResult result);
828IAsyncResult result = null;
852private static void OnAsyncCallCompleted(IAsyncResult result)
936protected IAsyncResult BeginInvoke(string methodName, object[] args, AsyncCallback callback, object state)
949protected object EndInvoke(string methodName, object[] args, IAsyncResult result)
1006IAsyncResult IClientChannel.BeginDisplayInitializationUI(AsyncCallback callback, object state)
1011void IClientChannel.EndDisplayInitializationUI(IAsyncResult result)
1108IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state)
1113IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state)
1118void ICommunicationObject.EndClose(IAsyncResult result)
1133IAsyncResult ICommunicationObject.BeginOpen(AsyncCallback callback, object state)
1138IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
1143void ICommunicationObject.EndOpen(IAsyncResult result)
1178IAsyncResult IOutputChannel.BeginSend(Message message, AsyncCallback callback, object state)
1183IAsyncResult IOutputChannel.BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state)
1188void IOutputChannel.EndSend(IAsyncResult result)
1213IAsyncResult IRequestChannel.BeginRequest(Message message, AsyncCallback callback, object state)
1218IAsyncResult IRequestChannel.BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state)
1223Message IRequestChannel.EndRequest(IAsyncResult result)
System\ServiceModel\Dispatcher\BufferedReceiveBinder.cs (11)
91public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state)
95IAsyncResult result = _channelBinder.BeginTryReceive(timeout, s_tryReceiveCallback, this);
105public bool EndTryReceive(IAsyncResult result, out RequestContext requestContext)
131public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state)
136public void EndSend(IAsyncResult result)
146public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state)
151public Message EndRequest(IAsyncResult result)
161public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state)
166public bool EndWaitForMessage(IAsyncResult result)
213private static void TryReceiveCallback(IAsyncResult result)
223private static void HandleEndTryReceive(IAsyncResult result)
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (43)
294public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state)
304public bool EndTryReceive(IAsyncResult result, out RequestContext requestContext)
340public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state)
345public void EndSend(IAsyncResult result)
355public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state)
370IAsyncResult result = _channel.BeginSend(message, timeout, Fx.ThunkCallback(new AsyncCallback(SendCallback)), duplexRequest);
398public Message EndRequest(IAsyncResult result)
601private void SendCallback(IAsyncResult result)
620public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state)
625public bool EndWaitForMessage(IAsyncResult result)
658protected override IAsyncResult OnBeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state)
663protected override void OnEndReply(IAsyncResult result)
683IAsyncResult result = context._channel.BeginSend(message, timeout, s_onSend, this);
694public static void End(IAsyncResult result)
699private static void OnSend(IAsyncResult result)
808private IAsyncResult _sendResult;
934public void FinishedSend(IAsyncResult sendResult, bool completedSynchronously)
1174IAsyncResult result = null;
1208IAsyncResult result = (IAsyncResult)state;
1213private static void ReceiveAsyncCallback(IAsyncResult result)
1223private void OnReceive(IAsyncResult result)
1270IAsyncResult result = null;
1303private static void CloseInnerChannelCallback(IAsyncResult result)
1313private void OnCloseInnerChannel(IAsyncResult result)
1352public IAsyncResult BeginReceive(AsyncCallback callback, object state)
1357public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state)
1362public Message EndReceive(IAsyncResult result)
1372public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state)
1377public bool EndTryReceive(IAsyncResult result, out Message message)
1387public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state)
1392public bool EndWaitForMessage(IAsyncResult result)
1431public IAsyncResult BeginClose(AsyncCallback callback, object state)
1436public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state)
1453public void EndClose(IAsyncResult result)
1485public IAsyncResult BeginOpen(AsyncCallback callback, object state)
1490public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
1495public void EndOpen(IAsyncResult result)
1511public IAsyncResult BeginSend(Message message, AsyncCallback callback, object state)
1516public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state)
1521public void EndSend(IAsyncResult result)
1575public IAsyncResult BeginWaitForBackgroundClose(TimeSpan timeout, AsyncCallback callback, object state)
1581public void EndWaitForBackgroundClose(IAsyncResult result)
System\ServiceModel\Dispatcher\IChannelBinder.cs (8)
22IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state);
23bool EndTryReceive(IAsyncResult result, out RequestContext requestContext);
26IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state);
27void EndSend(IAsyncResult result);
30IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state);
31Message EndRequest(IAsyncResult result);
34IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state);
35bool EndWaitForMessage(IAsyncResult result);
System\ServiceModel\Dispatcher\InputChannelBinder.cs (10)
62public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state)
67public bool EndTryReceive(IAsyncResult result, out RequestContext requestContext)
87public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state)
92public void EndSend(IAsyncResult result)
117public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state)
122public Message EndRequest(IAsyncResult result)
137public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state)
142public bool EndWaitForMessage(IAsyncResult result)
181protected override IAsyncResult OnBeginReply(Message message, TimeSpan timeout, AsyncCallback callback, object state)
186protected override void OnEndReply(IAsyncResult result)
System\ServiceModel\Dispatcher\ListenerBinder.cs (12)
86public IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state)
91public IChannelBinder EndAccept(IAsyncResult result)
133public IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state)
138public IChannelBinder EndAccept(IAsyncResult result)
178public IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state)
183public IChannelBinder EndAccept(IAsyncResult result)
223public IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state)
228public IChannelBinder EndAccept(IAsyncResult result)
268public IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state)
273public IChannelBinder EndAccept(IAsyncResult result)
313public IAsyncResult BeginAccept(TimeSpan timeout, AsyncCallback callback, object state)
318public IChannelBinder EndAccept(IAsyncResult result)
System\ServiceModel\Dispatcher\OperationFormatter.cs (10)
389private IAsyncResult BeginSerializeBodyContents(XmlDictionaryWriter writer, MessageVersion version, object[] parameters, object returnValue, bool isRequest,
395private void EndSerializeBodyContents(IAsyncResult result)
420IAsyncResult result = streamFormatter.BeginSerialize(writer, parameters, returnValue, PrepareAsyncCompletion(s_handleEndSerializeBodyContents), this);
437private static bool HandleEndSerializeBodyContents(IAsyncResult result)
444public static void End(IAsyncResult result)
782protected override IAsyncResult OnBeginWriteBodyContents(XmlDictionaryWriter writer, AsyncCallback callback, object state)
789protected override void OnEndWriteBodyContents(IAsyncResult result)
808IAsyncResult result = _operationFormatter.BeginSerializeBodyContents(writer, operationFormatterBodyWriter._version,
819private static bool HandleEndOnWriteBodyContents(IAsyncResult result)
826public static void End(IAsyncResult result)
System\ServiceModel\Dispatcher\OutputChannelBinder.cs (8)
64public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state)
69public bool EndTryReceive(IAsyncResult result, out RequestContext requestContext)
79public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state)
84public void EndSend(IAsyncResult result)
94public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state)
99public Message EndRequest(IAsyncResult result)
119public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state)
124public bool EndWaitForMessage(IAsyncResult result)
System\ServiceModel\Dispatcher\ReplyChannelBinder.cs (8)
62public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state)
67public bool EndTryReceive(IAsyncResult result, out RequestContext requestContext)
77public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state)
82public void EndSend(IAsyncResult result)
92public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state)
97public Message EndRequest(IAsyncResult result)
117public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state)
122public bool EndWaitForMessage(IAsyncResult result)
System\ServiceModel\Dispatcher\RequestChannelBinder.cs (8)
60public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state)
65public bool EndTryReceive(IAsyncResult result, out RequestContext requestContext)
75public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state)
80public void EndSend(IAsyncResult result)
90public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state)
95public Message EndRequest(IAsyncResult result)
124public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state)
129public bool EndWaitForMessage(IAsyncResult result)
System\ServiceModel\Security\SecuritySessionClientSettings.cs (20)
468protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
473protected override void OnEndOpen(IAsyncResult result)
1307protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state)
1312protected override void OnEndClose(IAsyncResult result)
1471IAsyncResult IRequestChannel.BeginRequest(Message message, AsyncCallback callback, object state) => ((IRequestChannel)this).BeginRequest(message, DefaultSendTimeout, callback, state);
1473IAsyncResult IRequestChannel.BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) => RequestAsync(message, timeout).ToApm(callback, state);
1475Message IRequestChannel.EndRequest(IAsyncResult result) => result.ToApmEnd<Message>();
1585public IAsyncResult BeginReceive(AsyncCallback callback, object state) => ReceiveAsync().ToApm(callback, state);
1587public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) => ReceiveAsync(timeout).ToApm(callback, state);
1589public Message EndReceive(IAsyncResult result) => result.ToApmEnd<Message>();
1591public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) => TryReceiveAsync(timeout).ToApm(callback, state);
1593public bool EndTryReceive(IAsyncResult result, out Message message)
1643public IAsyncResult BeginSend(Message message, AsyncCallback callback, object state) => SendAsync(message).ToApm(callback, state);
1645public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) => SendAsync(message, timeout).ToApm(callback, state);
1647public void EndSend(IAsyncResult result) => result.ToApmEnd();
1717public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) => WaitForMessageAsync(timeout).ToApm(callback, state);
1719public bool EndWaitForMessage(IAsyncResult result) => result.ToApmEnd<bool>();
1820public IAsyncResult BeginCloseOutputSession(AsyncCallback callback, object state) => CloseOutputSessionAsync().ToApm(callback, state);
1822public IAsyncResult BeginCloseOutputSession(TimeSpan timeout, AsyncCallback callback, object state) => CloseOutputSessionAsync(timeout).ToApm(callback, state);
1824public void EndCloseOutputSession(IAsyncResult result) => result.ToApmEnd();
System\ServiceModel\Security\WrapperSecurityCommunicationObject.cs (20)
45protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state)
50protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
72protected override void OnEndClose(IAsyncResult result)
77protected override void OnEndOpen(IAsyncResult result)
210public IAsyncResult BeginClose(AsyncCallback callback, object state)
215public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state)
220public void EndClose(IAsyncResult result)
240public IAsyncResult BeginOpen(AsyncCallback callback, object state)
245public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
250public void EndOpen(IAsyncResult result)
367public IAsyncResult BeginClose(AsyncCallback callback, object state)
372public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state)
377public void EndClose(IAsyncResult result)
392public IAsyncResult BeginOpen(AsyncCallback callback, object state)
397public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
402public void EndOpen(IAsyncResult result)
417public IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state)
422public IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
444public void OnEndClose(IAsyncResult result)
449public void OnEndOpen(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);
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\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.Transactions.Local (6)
System.Windows.Forms (9)
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);
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)