AsyncAPI.NET.Readers
3.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package AsyncAPI.NET.Readers --version 3.0.1
NuGet\Install-Package AsyncAPI.NET.Readers -Version 3.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AsyncAPI.NET.Readers" Version="3.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AsyncAPI.NET.Readers --version 3.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AsyncAPI.NET.Readers, 3.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AsyncAPI.NET.Readers as a Cake Addin #addin nuget:?package=AsyncAPI.NET.Readers&version=3.0.1 // Install AsyncAPI.NET.Readers as a Cake Tool #tool nuget:?package=AsyncAPI.NET.Readers&version=3.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AsyncAPI.NET
The AsyncAPI.NET SDK contains a useful object model for the AsyncAPI specification in .NET along with common serializers to extract raw AsyncAPI JSON and YAML documents from the model as well.
CHANGELOG
Wiki and getting started guide
Installation
Install the NuGet packages:
Example Usage
Main classes to know:
- AsyncApiStringReader
- AsyncApiStringWriter
- There is an extension on the AsyncApiDocument type which allows Serializing as well (
new AsyncApiDocument().SerializeAsJson()
ornew AsyncApiDocument().SerializeAsYaml()
- There is an extension on the AsyncApiDocument type which allows Serializing as well (
Writing
var myFirstAsyncApi = new AsyncApiDocument
{
Info = new AsyncApiInfo
{
Title = "my first asyncapi"
},
Channels = new Dictionary<string, AsyncApiChannel>
{
{
"users", new AsyncApiChannel
{
Subscribe = new AsyncApiOperation
{
OperationId = "users",
Description = "my users channel"
}
}
}
}
};
var yaml = myFirstAsyncApi.SerializeAsYaml();
//asyncapi: '2.5.0'
// info:
// title: my first asyncapi
// channels:
// users:
// subscribe:
// operationId: users
// description: my users channel
Reading
var httpClient = new HttpClient
{
BaseAddress = new Uri("https://raw.githubusercontent.com/asyncapi/spec/"),
};
var stream = await httpClient.GetStreamAsync("master/examples/streetlights-kafka.yml");
var asyncApiDocument = new AsyncApiStreamReader().Read(stream, out var diagnostic);
Attribution
Contribution
This project welcomes contributions and suggestions. Do you want to contribute to the project? Find out how here.
License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- AsyncAPI.NET (>= 3.0.1)
- YamlDotNet (>= 13.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AsyncAPI.NET.Readers:
Package | Downloads |
---|---|
AsyncAPI.NET.Bindings
AsyncAPI.NET Bindings |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
6.0.0-beta.99 | 320 | 10/25/2024 |
6.0.0-beta.98 | 52 | 10/14/2024 |
6.0.0-beta.97 | 850 | 9/4/2024 |
6.0.0-beta.96 | 80 | 8/22/2024 |
6.0.0-beta.95 | 121 | 8/16/2024 |
6.0.0-beta.94 | 64 | 8/12/2024 |
6.0.0-beta.93 | 71 | 8/8/2024 |
6.0.0-beta.92 | 71 | 7/4/2024 |
6.0.0-beta.91 | 55 | 6/14/2024 |
5.2.4 | 7,967 | 7/29/2024 |
5.2.3 | 80 | 7/29/2024 |
5.2.2 | 83 | 7/29/2024 |
5.2.2-beta.87 | 52 | 6/14/2024 |
5.2.1 | 1,618 | 6/12/2024 |
5.2.1-beta.86 | 51 | 5/28/2024 |
5.2.1-beta.85 | 51 | 5/28/2024 |
5.2.1-beta.84 | 913 | 5/21/2024 |
5.2.0 | 4,092 | 3/30/2024 |
5.2.0-beta.83 | 64 | 3/30/2024 |
5.2.0-beta.82 | 55 | 3/30/2024 |
5.2.0-beta.81 | 73 | 3/30/2024 |
5.2.0-beta.80 | 69 | 3/26/2024 |
5.2.0-beta.79 | 66 | 3/26/2024 |
5.2.0-beta.78 | 67 | 3/26/2024 |
5.2.0-beta.77 | 63 | 3/26/2024 |
5.2.0-beta.76 | 64 | 3/25/2024 |
5.2.0-beta.75 | 59 | 3/14/2024 |
5.2.0-beta.74 | 65 | 2/27/2024 |
5.2.0-beta.73 | 866 | 2/26/2024 |
5.2.0-beta.72 | 62 | 2/26/2024 |
5.2.0-beta.71 | 59 | 2/26/2024 |
5.1.1 | 1,320 | 2/16/2024 |
5.1.1-beta.69 | 60 | 2/16/2024 |
5.1.0 | 173 | 2/15/2024 |
5.1.0-beta | 132 | 2/13/2024 |
5.0.0 | 1,752 | 12/14/2023 |
4.2.0-beta | 892 | 11/1/2023 |
4.1.0 | 15,978 | 9/27/2023 |
4.1.0-beta | 844 | 9/25/2023 |
4.0.2 | 18,544 | 8/1/2023 |
4.0.2-beta | 171 | 7/30/2023 |
4.0.1 | 809 | 7/11/2023 |
4.0.1-beta | 318 | 6/29/2023 |
4.0.0 | 855 | 6/12/2023 |
4.0.0-beta | 566 | 6/5/2023 |
3.0.2 | 923 | 3/30/2023 |
3.0.1 | 2,567 | 3/13/2023 |
2.0.2 | 262 | 2/22/2023 |
2.0.1 | 1,618 | 2/8/2023 |
2.0.0 | 266 | 2/8/2023 |