Bus Template

The template for the file used when adding a message bus to a project using the `add bus`, `add bc`, or `new domain` commands.

Add Bus Template Properties

NameRequiredDescriptionDefaultNotes
AddBusYesA boolean to indicate that you are adding a bus.NoneNot required for the add bus command.
EnvironmentNoThe environments that get scaffolded out in this project. You only need to use the BrokerSettings with this command.None

Add Bus Template Examples

Adding a Bus with Your Domain or Bounded Context

To add a message bus to your domain or bounded context,you only need to use the AddBus property:

DomainName: WeSendReportsCompany
BoundedContexts:
  - ProjectName: Reporting
    Bus:
      AddBus: true
# additional template info

Optionally, you can update the bus connection info if you want:

DomainName: WeSendReportsCompany
BoundedContexts:
  - ProjectName: Reporting
    Environment:
      BrokerSettings:
        Username: specialguest
        Password: specialguest
    Bus:
      AddBus: true
    # additional new domain properties here

Adding a Bus to an Existing Project

If you've already created your Wrapt project and want to add a bus after the fact, you can use the add bus command. No need to pass a file, but you can if you want to set the environment properties. The AddBus property is not necessary in this context.

BoundedContexts:
  - ProjectName: Reporting
    Environment:
      BrokerSettings:
        Username: specialguest
        Password: specialguest