internal override Delegate[] GetDelegateContinuationsForDebugger() { Debug.Assert(m_action != null); return(new Delegate[] { AsyncMethodBuilderCore.TryGetStateMachineForDebugger(m_action) }); }
public void SetException(Exception exception) { AsyncMethodBuilderCore.ThrowAsync(exception); }
/// <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; }
public AsyncStateMachineBox() { var mn = new Action(MoveNext); MoveNextAction = AsyncCausalityTracer.LoggingOn ? AsyncMethodBuilderCore.OutputAsyncCausalityEvents(this, mn) : mn; }