Esempio n. 1
0
 /// <summary>Begins running the builder with the associated state machine.</summary>
 /// <typeparam name="TStateMachine">The type of the state machine.</typeparam>
 /// <param name="stateMachine">The state machine instance, passed by reference.</param>
 public void Start <TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine
 {
     _methodBuilder.Start(ref stateMachine); // will provide the right ExecutionContext semantics
 }
Esempio n. 2
0
 public void TrueStart(IAsyncStateMachine stateMachine)
 {
     m_builder.Start(ref stateMachine);
 }
 public void Start <TStateMachine>(ref TStateMachine stateMachine)
     where TStateMachine : IAsyncStateMachine
 {
     _methodBuilder.Start(ref stateMachine);
 }
 public void Start <TStateMachine>(ref TStateMachine stateMachine)
     where TStateMachine : IAsyncStateMachine
 => _builder.Start(ref stateMachine);
Esempio n. 5
0
 public void MoveNext <TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine =>
 _methodBuilder.Start(ref stateMachine);
 public void Start <TStateMachine>(ref TStateMachine stateMachine)
     where TStateMachine : IAsyncStateMachine
 {
     // argument validation handled by AsyncMethodBuilderCore
     _builder.Start(ref stateMachine);
 }