Ejemplo n.º 1
0
 /// <summary>Initiates the builder's execution with the associated state machine.</summary>
 /// <typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
 /// <param name="stateMachine">The state machine instance, passed by reference.</param>
 /// <exception cref="System.ArgumentNullException">The <paramref name="stateMachine"/> argument was null (Nothing in Visual Basic).</exception>
 public void Start <TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine
 {
     m_coreState.Start(ref stateMachine); // argument validation handled by AsyncMethodBuilderCore
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     Begins running the builder with the associated state machine.
 /// </summary>
 /// <param name="stateMachine">The state machine instance, passed by reference.</param>
 /// <typeparam name="TStateMachine">The type of the state machine.</typeparam>
 /// <exception cref="T:System.ArgumentNullException"><paramref name="stateMachine" /> is null.</exception>
 public void Start <TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine
 {
     m_coreState.Start(stateMachine);
 }