@asyncapi/dotnet-rabbitmq-template
v1.0.0
Published
Template package for AsyncAPI code generation
Downloads
65
Readme
This template is for generating a .NET C# wrapper for the RabbitMQ client based on your AsyncAPI document. The template uses the RabbitMQ C# Client library.
Have you found a bug or have an idea for improvement? Feel free to contribute! See the contribution guidelines how to do so.
Example usage
Given any AsyncAPI file (AsyncAPI.yml
) first generate the client with the AsyncAPI generator such as
ag .\asyncapi.yaml .\dotnet-rabbitmq-template\ -o .\output --force-write
How to use
The generated output shall be seen a subscriber and/or publisher of message on/from a rabbit mq broker.
Requirements
- @asyncapi/generator < v2.0.0 > v1.1.1
Install the generator through npm or run it from docker official installer.
Template Parameters
These are the available template parameters:
|Parameter|Type|Description|
|---|---|---|
| namespace | String | Use this parameter to specify the namespace for the generated C# client --param "namespace=Company.Services"
, defaults to Demo
| user | String | Use this parameter to specify a user for for accessing the RabbitMq cluster --param "user=username"
, defaults to user
| password | String | Use this parameter to specify a password for for accessing the RabbitMq cluster --param "password=password"
, defaults to password
Contributing
Before contributing please read the CONTRIBUTING document.
Contributors ✨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!