Пример #1
0
 private void SetGeneratedCustomerIdToSessionContext(object sender, CommandExecutedArgs commandExecutedArgs)
 {
     var generatedCustomerId = (int)commandExecutedArgs.Args;
     SessionContext = new SessionContext { CustomerId = generatedCustomerId };
 }
Пример #2
0
 /// <summary>
 /// Raises a command executed event.
 /// </summary>
 /// <param name="eventArgs">Holds data generated during command execution</param>
 protected void RaiseCommandExecutedEvent(CommandExecutedArgs eventArgs)
 {
     CommandExecuted?.Invoke(eventArgs);
 }