internal override Delegate[] GetDelegateContinuationsForDebugger()
 {
     Debug.Assert(m_action != null);
     return(new Delegate[] { AsyncMethodBuilderCore.TryGetStateMachineForDebugger(m_action) });
 }
Example #2
0
 public void SetException(Exception exception)
 {
     AsyncMethodBuilderCore.ThrowAsync(exception);
 }
Example #3
0
 /// <summary>Initializes the <see cref="AsyncVoidMethodBuilder"/>.</summary>
 /// <param name="synchronizationContext">The synchronizationContext associated with this operation. This may be null.</param>
 private AsyncVoidMethodBuilder(object ignored)
 {
     m_coreState           = default(AsyncMethodBuilderCore);
     m_objectIdForDebugger = null;
 }
Example #4
0
            public AsyncStateMachineBox()
            {
                var mn = new Action(MoveNext);

                MoveNextAction = AsyncCausalityTracer.LoggingOn ? AsyncMethodBuilderCore.OutputAsyncCausalityEvents(this, mn) : mn;
            }