The template for the file used when adding a message bus to a project using the `add:bus`, `add:bc`, or `new:domain` commands.
Name | Required | Description | Default | Notes |
---|---|---|---|---|
AddBus | Yes | A boolean to indicate that you are adding a bus. | None | Not required for the add:bus command. |
Environment | No | The environments that get scaffolded out in this project. You only need to use the BrokerSettings with this command. | None |
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
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