CQRSMicroservices.Customers.CustomerAggregateRoot.Handle C# (CSharp) Method

Handle() private method

private Handle ( CreateCustomerCommand command ) : void
command CreateCustomerCommand
return void
    private void Handle(CreateCustomerCommand command)
    {
      RaiseEvent(new CustomerCreatedEvent { CustomerId = command.CustomerId, Name = command.Name });
    }
  }
CustomerAggregateRoot