Adds a message bus to your project.
This command will add a MassTransit message bus to an existing Wrapt project using a formatted yaml or json file. The input file template.
This command will:
Messages project in your root and add reference to it in your WebApi project.This command must be ran from one of your bounded context directories for a project.
craftsman add:bus [options] <filepath>| Argument | Description |
|---|---|
| filepath | The full filepath for the yaml or json file that lists the new entities that you want to add to your API. |
| Option | Description |
|---|---|
| -h, --help | Display help message. No filepath is needed to display the help message. |
craftsman add:bus -h
craftsman add:bus C:\fullpath\newbus.yaml
craftsman add:bus C:\fullpath\newbus.yml
craftsman add:bus C:\fullpath\newbus.jsonWhen using the add:bus command, your template file pretty lean (generally just environment variables). Check out the Adding a Bus to an Existing Project example for more details.