/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.DirectoryServices.Protocols/src/System/DirectoryServices/Protocols/ldap/ |
H A D | LdapPartialResultsProcessor.cs | 28 _resultList.Add(asyncResult); in Add() 50 _resultList.Remove(asyncResult); in Remove() 101 GetResultsHelper(asyncResult); in RetrievingSearchResults() 107 asyncResult._completed = true; in RetrievingSearchResults() 113 else if (asyncResult._callback != null && asyncResult._partialCallback) in RetrievingSearchResults() 116 …if (asyncResult._response != null && (asyncResult._response.Entries.Count > 0 || asyncResult._resp… in RetrievingSearchResults() 123 tmpCallback?.Invoke(asyncResult); in RetrievingSearchResults() 144 … if ((asyncResult._startTime.Ticks + asyncResult._requestTimeout.Ticks) > DateTime.Now.Ticks) in GetResultsHelper() 156 if (asyncResult._response != null) in GetResultsHelper() 255 throw asyncResult._exception; in GetPartialResults() [all …]
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/System/System.Net.Sockets/ |
H A D | SocketTaskExtensions.cs | 16 asyncResult => ((Socket)asyncResult.AsyncState).EndAccept(asyncResult), in AcceptAsync() 25 asyncResult => ((Socket)asyncResult.AsyncState).EndAccept(asyncResult), in AcceptAsync() 35 asyncResult => ((Socket)asyncResult.AsyncState).EndConnect(asyncResult), in ConnectAsync() 44 asyncResult => ((Socket)asyncResult.AsyncState).EndConnect(asyncResult), in ConnectAsync() 54 asyncResult => ((Socket)asyncResult.AsyncState).EndConnect(asyncResult), in ConnectAsync() 64 asyncResult => ((Socket)asyncResult.AsyncState).EndConnect(asyncResult), in ConnectAsync() 80 asyncResult => ((Socket)asyncResult.AsyncState).EndReceive(asyncResult), in ReceiveAsync() 93 asyncResult => ((Socket)asyncResult.AsyncState).EndReceive(asyncResult), in ReceiveAsync() 209 asyncResult => ((Socket)asyncResult.AsyncState).EndSend(asyncResult), in SendAsync() 222 asyncResult => ((Socket)asyncResult.AsyncState).EndSend(asyncResult), in SendAsync() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.Sockets/src/System/Net/Sockets/ |
H A D | SocketTaskExtensions.netfx.cs | 16 asyncResult => ((Socket)asyncResult.AsyncState).EndAccept(asyncResult), in AcceptAsync() 25 asyncResult => ((Socket)asyncResult.AsyncState).EndAccept(asyncResult), in AcceptAsync() 35 asyncResult => ((Socket)asyncResult.AsyncState).EndConnect(asyncResult), in ConnectAsync() 44 asyncResult => ((Socket)asyncResult.AsyncState).EndConnect(asyncResult), in ConnectAsync() 54 asyncResult => ((Socket)asyncResult.AsyncState).EndConnect(asyncResult), in ConnectAsync() 64 asyncResult => ((Socket)asyncResult.AsyncState).EndConnect(asyncResult), in ConnectAsync() 80 asyncResult => ((Socket)asyncResult.AsyncState).EndReceive(asyncResult), in ReceiveAsync() 93 asyncResult => ((Socket)asyncResult.AsyncState).EndReceive(asyncResult), in ReceiveAsync() 209 asyncResult => ((Socket)asyncResult.AsyncState).EndSend(asyncResult), in SendAsync() 222 asyncResult => ((Socket)asyncResult.AsyncState).EndSend(asyncResult), in SendAsync() [all …]
|
H A D | SocketPal.Windows.cs | 815 ref asyncResult._singleBuffer, in SendAsync() 841 asyncResult._wsaBuffers, in SendAsync() 842 asyncResult._wsaBuffers.Length, in SendAsync() 922 ref asyncResult._singleBuffer, in SendToAsync() 926 asyncResult.GetSocketAddressPtr(), in SendToAsync() 927 asyncResult.SocketAddress.Size, in SendToAsync() 950 ref asyncResult._singleBuffer, in ReceiveAsync() 976 asyncResult._wsaBuffers, in ReceiveAsync() 977 asyncResult._wsaBuffers.Length, in ReceiveAsync() 1002 ref asyncResult._singleBuffer, in ReceiveFromAsync() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.NameResolution/src/System/Net/ |
H A D | DNS.cs | 349 asyncResult, in HostResolutionBeginHelper() 356 return asyncResult; in HostResolutionBeginHelper() 383 asyncResult, in HostResolutionBeginHelper() 390 return asyncResult; in HostResolutionBeginHelper() 436 return asyncResult; in BeginGetHostByName() 544 return asyncResult; in BeginGetHostEntry() 556 return asyncResult; in BeginGetHostEntry() 576 return asyncResult; in BeginGetHostAddresses() 632 asyncResult => EndGetHostAddresses(asyncResult), in GetHostAddressesAsync() 642 asyncResult => EndGetHostEntry(asyncResult), in GetHostEntryAsync() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Threading.Tasks/tests/Task/ |
H A D | TaskAPMTest.cs | 62 longTask.EndDoTask(asyncResult); in WaitUntilCompleteTechnique() 64 AssertTaskCompleted(asyncResult); in WaitUntilCompleteTechnique() 84 while (!asyncResult.IsCompleted) in PollUntilCompleteTechnique() 89 AssertTaskCompleted(asyncResult); in PollUntilCompleteTechnique() 108 asyncResult.AsyncWaitHandle.WaitOne(); in WaitOnAsyncWaitHandleTechnique() 110 AssertTaskCompleted(asyncResult); in WaitOnAsyncWaitHandleTechnique() 128 IAsyncResult asyncResult; in CallbackTechnique() 136 AssertTaskCompleted(asyncResult); in CallbackTechnique() 220 public void EndDoTask(IAsyncResult asyncResult) in EndDoTask() argument 223 Task task = (Task)asyncResult; in EndDoTask() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/aspnetwebstack/test/System.Web.Mvc.Test/Async/Test/ |
H A D | SimpleAsyncResultTest.cs | 15 SimpleAsyncResult asyncResult = new SimpleAsyncResult(expected); in AsyncStateProperty() 18 object asyncState = asyncResult.AsyncState; in AsyncStateProperty() 28 SimpleAsyncResult asyncResult = new SimpleAsyncResult(null); in AsyncWaitHandleProperty() 31 WaitHandle asyncWaitHandle = asyncResult.AsyncWaitHandle; in AsyncWaitHandleProperty() 41 SimpleAsyncResult asyncResult = new SimpleAsyncResult(null); in CompletedSynchronouslyProperty() 54 SimpleAsyncResult asyncResult = new SimpleAsyncResult(null); in IsCompletedProperty() 57 bool isCompleted = asyncResult.IsCompleted; in IsCompletedProperty() 73 Assert.Equal(asyncResult, ar); in MarkCompleted_AsynchronousCompletion() 79 asyncResult.MarkCompleted(false, callback); in MarkCompleted_AsynchronousCompletion() 93 Assert.Equal(asyncResult, ar); in MarkCompleted_SynchronousCompletion() [all …]
|
H A D | AsyncResultWrapperTest.cs | 114 AsyncResultWrapper.End(asyncResult); in BeginSynchronous_Action() 118 Assert.True(asyncResult.IsCompleted); in BeginSynchronous_Action() 119 Assert.True(asyncResult.CompletedSynchronously); in BeginSynchronous_Action() 131 Assert.True(asyncResult.IsCompleted); in BeginSynchronous_Func() 132 Assert.True(asyncResult.CompletedSynchronously); in BeginSynchronous_Func() 139 IAsyncResult asyncResult = AsyncResultWrapper.Begin( in End_ExecutesStoredDelegateAndReturnsValue() 155 IAsyncResult asyncResult = AsyncResultWrapper.Begin( in End_ThrowsIfAsyncResultIsIncorrectType() 179 IAsyncResult asyncResult = AsyncResultWrapper.Begin( in End_ThrowsIfAsyncResultTagMismatch() 196 IAsyncResult asyncResult = AsyncResultWrapper.Begin( in End_ThrowsIfCalledTwiceOnSameAsyncResult() 202 AsyncResultWrapper.End(asyncResult); in End_ThrowsIfCalledTwiceOnSameAsyncResult() [all …]
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/mscorlib/system/threading/Tasks/ |
H A D | TaskToApm.cs | 51 IAsyncResult asyncResult; in Begin() 57 callback(asyncResult); in Begin() 68 return asyncResult; in Begin() 73 public static void End(IAsyncResult asyncResult) in End() argument 78 var twar = asyncResult as TaskWrapperAsyncResult; in End() 87 task = asyncResult as Task; in End() 98 public static TResult End<TResult>(IAsyncResult asyncResult) in End() argument 103 var twar = asyncResult as TaskWrapperAsyncResult; in End() 112 task = asyncResult as Task<TResult>; in End() 129 Contract.Requires(asyncResult != null); in InvokeCallbackWhenTaskCompletes() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/Common/src/System/Threading/Tasks/ |
H A D | TaskToApm.cs | 42 IAsyncResult asyncResult; in Begin() 47 callback?.Invoke(asyncResult); in Begin() 59 return asyncResult; in Begin() 64 public static void End(IAsyncResult asyncResult) in End() argument 69 var twar = asyncResult as TaskWrapperAsyncResult; in End() 78 task = asyncResult as Task; in End() 92 public static TResult End<TResult>(IAsyncResult asyncResult) in End() argument 97 var twar = asyncResult as TaskWrapperAsyncResult; in End() 106 task = asyncResult as Task<TResult>; in End() 126 Debug.Assert(asyncResult != null); in InvokeCallbackWhenTaskCompletes() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corert/src/System.Private.CoreLib/shared/System/Threading/Tasks/ |
H A D | TaskToApm.cs | 42 IAsyncResult asyncResult; in Begin() 47 callback?.Invoke(asyncResult); in Begin() 59 return asyncResult; in Begin() 64 public static void End(IAsyncResult asyncResult) in End() argument 69 var twar = asyncResult as TaskWrapperAsyncResult; in End() 78 task = asyncResult as Task; in End() 92 public static TResult End<TResult>(IAsyncResult asyncResult) in End() argument 97 var twar = asyncResult as TaskWrapperAsyncResult; in End() 106 task = asyncResult as Task<TResult>; in End() 126 Debug.Assert(asyncResult != null); in InvokeCallbackWhenTaskCompletes() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/Common/src/CoreLib/System/Threading/Tasks/ |
H A D | TaskToApm.cs | 42 IAsyncResult asyncResult; in Begin() 47 callback?.Invoke(asyncResult); in Begin() 59 return asyncResult; in Begin() 64 public static void End(IAsyncResult asyncResult) in End() argument 69 var twar = asyncResult as TaskWrapperAsyncResult; in End() 78 task = asyncResult as Task; in End() 92 public static TResult End<TResult>(IAsyncResult asyncResult) in End() argument 97 var twar = asyncResult as TaskWrapperAsyncResult; in End() 106 task = asyncResult as Task<TResult>; in End() 126 Debug.Assert(asyncResult != null); in InvokeCallbackWhenTaskCompletes() [all …]
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System/net/System/Net/ |
H A D | _ListenerAsyncResult.cs | 32 … private static void IOCompleted(ListenerAsyncResult asyncResult, uint errorCode, uint numBytes) in IOCompleted() argument 42 asyncResult.ErrorCode = (int)errorCode; in IOCompleted() 47 HttpListener httpWebListener = asyncResult.AsyncObject as HttpListener; in IOCompleted() 55 if (httpWebListener.ValidateRequest(asyncResult.m_RequestContext)) in IOCompleted() 65 … asyncResult.m_RequestContext = result == null ? new AsyncRequestContext(asyncResult) : null; in IOCompleted() 69 asyncResult.m_RequestContext.Reset(0, 0); in IOCompleted() 75 … asyncResult.m_RequestContext.Reset(asyncResult.m_RequestContext.RequestBlob->RequestId, numBytes); in IOCompleted() 81 uint statusCode = asyncResult.QueueBeginGetContext(); in IOCompleted() 105 asyncResult.InvokeCallback(result); in IOCompleted() 112 ListenerAsyncResult asyncResult = (ListenerAsyncResult) callbackOverlapped.AsyncResult; in WaitCallback() [all …]
|
H A D | DNS.cs | 713 ResolveAsyncResult asyncResult; in NativeToHostEntry() 729 return asyncResult; in NativeToHostEntry() 748 return asyncResult; in NativeToHostEntry() 783 return asyncResult; in NativeToHostEntry() 792 if (asyncResult == null) { in NativeToHostEntry() 830 return asyncResult; in NativeToHostEntry() 954 return asyncResult; in NativeToHostEntry() 966 return asyncResult; in NativeToHostEntry() 987 return asyncResult; in NativeToHostEntry() 1008 return asyncResult; in NativeToHostEntry() [all …]
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/ |
H A D | SslStreamBase.cs | 561 InternalBeginRead(asyncResult); in BeginRead() 566 InternalBeginRead(asyncResult); in BeginRead() 569 return asyncResult; in BeginRead() 596 … preReadSize = this.inputBuffer.Read(asyncResult.Buffer, asyncResult.Offset, asyncResult.Count); in InternalBeginRead() 607 … InternalReadCallback_inner (asyncResult, recbuf, new object[] { recbuf, asyncResult }, false, 0); in InternalBeginRead() 619 asyncResult.SetComplete(0); in InternalBeginRead() 780 ContentType.ApplicationData, asyncResult.Buffer, asyncResult.Offset, asyncResult.Count); in InternalBeginWrite() 858 InternalBeginWrite(asyncResult); in BeginWrite() 861 return asyncResult; in BeginWrite() 875 if (!asyncResult.IsCompleted) in EndRead() [all …]
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.Data.Services.Client/Client/System/Data/Services/Client/ |
H A D | QueryResult.cs | 98 response = asyncResult as QueryResult; in EndExecute() 123 IAsyncResult asyncResult; in BeginExecute() 403 private static void AsyncEndWrite(IAsyncResult asyncResult) in AsyncEndWrite() argument 413 stream.EndWrite(asyncResult); in AsyncEndWrite() 446 Debug.Assert(asyncResult != null && asyncResult.IsCompleted, "asyncResult.IsCompleted"); in AsyncEndGetResponse() 447 QueryResult state = asyncResult.AsyncState as QueryResult; in AsyncEndGetResponse() 510 IAsyncResult asyncResult; in ReadResponseStream() 538 private static void AsyncEndRead(IAsyncResult asyncResult) in AsyncEndRead() argument 540 Debug.Assert(asyncResult != null && asyncResult.IsCompleted, "asyncResult.IsCompleted"); in AsyncEndRead() 551 count = stream.EndRead(asyncResult); in AsyncEndRead() [all …]
|
H A D | BaseAsyncResult.cs | 134 Util.CheckArgumentNull(asyncResult, "asyncResult"); 136 T result = (asyncResult as T); 186 return PostInvokeAsync(asyncResult, callback); in InvokeAsync() 192 return PostInvokeAsync(asyncResult, callback); in InvokeAsync() 248 if (asyncResult.CompletedSynchronously) in PostInvokeAsync() 251 callback(asyncResult); in PostInvokeAsync() 254 return asyncResult; in PostInvokeAsync() 259 return (asyncResult) => in GetDataServiceAsyncCallback() 261 …Debug.Assert(asyncResult != null && asyncResult.IsCompleted, "asyncResult != null && asyncResult.I… in GetDataServiceAsyncCallback() 262 if (asyncResult.CompletedSynchronously) in GetDataServiceAsyncCallback() [all …]
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.ServiceModel/Mono.Security.Protocol.Tls/ |
H A D | SslStreamBase.cs | 525 throw asyncResult.AsyncException; in EndNegotiateHandshake() 570 InternalBeginRead(asyncResult); in BeginRead() 575 InternalBeginRead(asyncResult); in BeginRead() 578 return asyncResult; in BeginRead() 605 … preReadSize = this.inputBuffer.Read(asyncResult.Buffer, asyncResult.Offset, asyncResult.Count); in InternalBeginRead() 625 asyncResult.SetComplete(0); in InternalBeginRead() 775 ContentType.ApplicationData, asyncResult.Buffer, asyncResult.Offset, asyncResult.Count); in InternalBeginWrite() 859 InternalBeginWrite(asyncResult); in BeginWrite() 862 return asyncResult; in BeginWrite() 876 if (!asyncResult.IsCompleted) in EndRead() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.HttpListener/src/System/Net/Windows/ |
H A D | HttpRequestStream.Windows.cs | 132 HttpRequestStreamAsyncResult asyncResult = null; in BeginReadCore() 141 asyncResult.InvokeCallback(dataRead); in BeginReadCore() 180 asyncResult._pPinnedBuffer, in BeginReadCore() 183 asyncResult._pOverlapped); in BeginReadCore() 191 asyncResult.InternalCleanup(); in BeginReadCore() 197 asyncResult.InternalCleanup(); in BeginReadCore() 207 asyncResult.InternalCleanup(); in BeginReadCore() 219 return asyncResult; in BeginReadCore() 229 if (asyncResult == null) in EndRead() 332 …if (NetEventSource.IsEnabled) NetEventSource.DumpBuffer(asyncResult, (IntPtr)asyncResult._pPinnedB… in IOCompleted() [all …]
|
H A D | ListenerAsyncResult.Windows.cs | 22 … private static void IOCompleted(ListenerAsyncResult asyncResult, uint errorCode, uint numBytes) in IOCompleted() argument 32 asyncResult.ErrorCode = (int)errorCode; in IOCompleted() 37 HttpListener httpWebListener = asyncResult.AsyncObject as HttpListener; in IOCompleted() 45 if (httpWebListener.ValidateRequest(asyncResult._requestContext)) in IOCompleted() 47 … result = httpWebListener.HandleAuthentication(asyncResult._requestContext, out stoleBlob); in IOCompleted() 55 …asyncResult._requestContext = result == null ? new AsyncRequestContext(httpWebListener.RequestQueu… in IOCompleted() 59 … asyncResult._requestContext.Reset(httpWebListener.RequestQueueBoundHandle, 0, 0); in IOCompleted() 65 …asyncResult._requestContext.Reset(httpWebListener.RequestQueueBoundHandle, asyncResult._requestCon… in IOCompleted() 71 uint statusCode = asyncResult.QueueBeginGetContext(); in IOCompleted() 94 asyncResult.InvokeCallback(result); in IOCompleted() [all …]
|
/dports/devel/qtcreator/qt-creator-opensource-src-5.0.3/src/tools/clangbackend/source/ |
H A D | clangupdateannotationsjob.cpp | 70 UpdateAnnotationsJob::AsyncResult asyncResult; in prepareAsyncRun() local 71 asyncResult.updateResult = translationUnit.update(updateInput); in prepareAsyncRun() 74 translationUnit.extractAnnotations(asyncResult.firstHeaderErrorDiagnostic, in prepareAsyncRun() 75 asyncResult.diagnostics, in prepareAsyncRun() 76 asyncResult.tokenInfos, in prepareAsyncRun() 77 asyncResult.skippedSourceRanges); in prepareAsyncRun() 78 asyncResult.unresolvedFilePaths.unite( in prepareAsyncRun() 79 unresolvedFilePaths({asyncResult.firstHeaderErrorDiagnostic})); in prepareAsyncRun() 80 asyncResult.unresolvedFilePaths.unite(unresolvedFilePaths(asyncResult.diagnostics)); in prepareAsyncRun() 82 return asyncResult; in prepareAsyncRun() [all …]
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.WorkflowServices/System/ServiceModel/Dispatcher/ |
H A D | WorkflowRequestContext.cs | 22 WorkflowOperationAsyncResult asyncResult; field in System.ServiceModel.Dispatcher.WorkflowRequestContext 37 if (asyncResult == null) in WorkflowRequestContext() 47 this.asyncResult = asyncResult; in WorkflowRequestContext() 109 WorkflowOperationAsyncResult asyncResult = this.GetAsyncResult(); in SendFault() 110 asyncResult.SendFault(exception, outgoingContextProperties); in SendFault() 131 WorkflowOperationAsyncResult asyncResult = this.GetAsyncResult(); in SendReply() 132 asyncResult.SendResponse(returnValue, outputs, outgoingContextProperties); in SendReply() 165 if (this.asyncResult == null) in GetAsyncResult() 169 return asyncResult; in GetAsyncResult() 191 if (this.asyncResult != null) in OnSerializing() [all …]
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.Web.Mvc3/Mvc/Async/ |
H A D | AsyncResultWrapper.cs | 47 asyncResult.Begin(callback, state, timeout); in Begin() 48 return asyncResult; in Begin() 85 asyncResult.Begin(callback, state, Timeout.Infinite); in BeginSynchronous() 86 return asyncResult; in BeginSynchronous() 99 public static TResult End<TResult>(IAsyncResult asyncResult) { in End() argument 100 return End<TResult>(asyncResult, null /* tag */); in End() 107 public static void End(IAsyncResult asyncResult) { in End() argument 108 End(asyncResult, null /* tag */); in End() 112 End<AsyncVoid>(asyncResult, tag); in End() 185 if (asyncResult == null) { in Cast() [all …]
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.Transactions/System.Transactions/ |
H A D | CommittableTransaction.cs | 26 IAsyncResult asyncResult; field in System.Transactions.CommittableTransaction 54 asyncResult = BeginCommitInternal (cb); in BeginCommit() 58 public void EndCommit (IAsyncResult asyncResult) in EndCommit() argument 60 if (asyncResult != this) in EndCommit() 63 EndCommitInternal (this.asyncResult); in EndCommit() 68 if (asyncResult == null && ar.CompletedSynchronously) in CommitCallback() 69 asyncResult = ar; in CommitCallback() 90 get { return asyncResult.AsyncWaitHandle; } 94 get { return asyncResult.CompletedSynchronously; } 98 get { return asyncResult.IsCompleted; }
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/mscorlib/system/io/ |
H A D | stream.cs | 368 if (asyncResult == null) in EndRead() 434 (stream, asyncResult) => stream.EndRead(asyncResult)); // cached by compiler in BeginEndReadAsync() 555 if (asyncResult==null) in EndWrite() 816 callback(asyncResult); in BlockingBeginRead() 819 return asyncResult; in BlockingBeginRead() 849 callback(asyncResult); in BlockingBeginWrite() 852 return asyncResult; in BlockingBeginWrite() 918 if (asyncResult == null) in EndRead() 935 if (asyncResult == null) in EndWrite() 1253 if (asyncResult == null) in EndRead() [all …]
|