Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@asyncapi/dotnet-nats-template
Advanced tools
This is a .NET C# NATS template for the AsyncAPI generator
This template is for generating a .NET C# wrapper for the NATS client based on your AsyncAPI document. The template is based on the nats.net library.
Have you found a bug or have an idea for improvement? Feel free to contribute! See the contribution guidelines how to do so.
Given any AsyncAPI file (AsyncAPI.yml
) first generate the client with the AsyncAPI generator such as
ag --install --output ./nats-client ./AsyncAPI.yml @asyncapi/dotnet-nats-template
The generated output shall be seen a separate library (similar to any REST API client), that can be interacted with. It generates all the necessary functionality for you to easily interact with the NATS broker based on the AsyncAPI definition of the application.
Install the generator through npm or run it from docker official installer.
You can configure this template by passing different parameters in the Generator CLI: -p PARAM1_NAME=PARAM1_VALUE -p PARAM2_NAME=PARAM2_VALUE
Name | Description | Required | Default | Allowed Values | Example |
---|---|---|---|---|---|
version | Version to use for the generated library. | No | 0.0.1 | string | 1.0.1 |
projectName | Name of the generated library. | No | AsyncapiNatsClient | string | MyCustomName |
repositoryUrl | Repository url for the project file, often needed for release pipelines. | No | None | string | https://github.com/GamingAPI/rust-csharp-game-api.git |
targetFramework | Set the project target frameworks. Separate multiple by ; . | No | netstandard2.0;netstandard2.1 | string | net461 |
packageVersion | PackageVersion to use for the generated library. | No | None | string | 1.0.1 |
assemblyVersion | AssemblyVersion to use for the generated library. | No | None | string | 1.0.1.0 |
fileVersion | FileVersion to use for the generated library. | No | None | string | 1.0.1.0 |
serializationLibrary | Serialization library for the underlying models. | No | json | newtonsoft or json (system.text.json)` | newtonsoft |
Before contributing please read the CONTRIBUTING document.
Thanks goes to these wonderful people (emoji key):
Jonas Lagoni 💻 🚧 💬 🤔 📖 🐛 | Lukasz Gornicki 👀 | Yoeri Van Damme 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
FAQs
NATS .NET template for the AsyncAPI generator
The npm package @asyncapi/dotnet-nats-template receives a total of 0 weekly downloads. As such, @asyncapi/dotnet-nats-template popularity was classified as not popular.
We found that @asyncapi/dotnet-nats-template demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.