Adds a event driven message consumer to your project.
This command will add a MassTransit consumer to an existing Wrapt project using a formatted yaml or json file. The input file template.
This command will:
This command must to be ran from one of your bounded context directories for a project.
craftsman add:consumer [options] <filepath>
#OR
craftsman add:consumers [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:consumer -h
craftsman add:consumer C:\fullpath\newconsumer.yaml
craftsman add:consumer C:\fullpath\newconsumer.yml
craftsman add:consumer C:\fullpath\newconsumer.json
When using the add:consumer
command, your template file is pretty simple. Check out the Adding a Consumer to an Existing Project example for more details.