1 write to AsyncCallback
System.Net.Mail (1)
src\libraries\Common\src\System\Net\ContextAwareResult.cs (1)
240
AsyncCallback
= closureCopy.AsyncCallback;
6 references to AsyncCallback
System.Net.Mail (6)
src\libraries\Common\src\System\Net\ContextAwareResult.cs (6)
144
Debug.Assert(
AsyncCallback
!= null || (_flags & StateFlags.CaptureContext) != 0, "No context captured - specify a callback or forceCaptureContext.");
230
if (!closureCopy.IsCompatible(
AsyncCallback
))
248
if (closure == null &&
AsyncCallback
!= null && cachedContext != null)
250
closure = new CallbackClosure(cachedContext,
AsyncCallback
);
273
bool capturingContext =
AsyncCallback
!= null || (_flags & StateFlags.CaptureContext) != 0;
313
Debug.Assert(
AsyncCallback
== null || CompletedSynchronously, "Didn't capture context, but didn't complete synchronously!");