public void Execute(EventInformation <TEvent> message) { Ensure.ArgumentNotNull(message, "message"); this.stateMachine.Fire(message.EventId, message.EventArgument); }
/// <summary> /// Fires the event on state machine. /// </summary> /// <param name="e">The event to fire.</param> private void FireEventOnStateMachine(EventInformation <TEvent> e) { this.stateMachine.Fire(e.EventId, e.EventArgument); }
private async Task FireEventOnStateMachine(EventInformation <TEvent> e) { await this.stateMachine.Fire(e.EventId, e.EventArgument).ConfigureAwait(false); }