CloudNative.CloudEvents
2.9.0
dotnet add package CloudNative.CloudEvents --version 2.9.0
NuGet\Install-Package CloudNative.CloudEvents -Version 2.9.0
<PackageReference Include="CloudNative.CloudEvents" Version="2.9.0" />
<PackageVersion Include="CloudNative.CloudEvents" Version="2.9.0" />
<PackageReference Include="CloudNative.CloudEvents" />
paket add CloudNative.CloudEvents --version 2.9.0
#r "nuget: CloudNative.CloudEvents, 2.9.0"
#:package CloudNative.CloudEvents@2.9.0
#addin nuget:?package=CloudNative.CloudEvents&version=2.9.0
#tool nuget:?package=CloudNative.CloudEvents&version=2.9.0
About
Core CloudEvents support for .NET.
This package provides the core CloudEvents types for representing events and their attributes in .NET, plus the CloudEventFormatter base class.
It also includes the built-in HTTP protocol binding; for an overview of protocol bindings and their types in this SDK, see the Protocol bindings section of the user guide.
How to Use
You can use the core package on its own, or combine it with a formatter package such as CloudNative.CloudEvents.SystemTextJson when you want to serialize events with the built-in HTTP binding:
using CloudNative.CloudEvents;
using CloudNative.CloudEvents.Http;
using CloudNative.CloudEvents.SystemTextJson;
var cloudEvent = new CloudEvent
{
Id = Guid.NewGuid().ToString(),
Source = new Uri("https://example.com/orders"),
Type = "com.example.order.created",
DataContentType = "application/json",
Data = new { OrderId = 1234 }
};
var formatter = new JsonEventFormatter();
var content = cloudEvent.ToHttpContent(ContentMode.Structured, formatter);
For more examples, see Samples.
Additional Documentation
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- System.Memory (>= 4.6.3)
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages (206)
Showing the top 5 NuGet packages that depend on CloudNative.CloudEvents:
| Package | Downloads |
|---|---|
|
Motor.Extensions.Hosting.Abstractions
Motor.NET is a microservice framework based on Microsoft.Extensions.Hosting. |
|
|
CloudNative.CloudEvents.SystemTextJson
JSON support for the CNCF CloudEvents SDK, based on System.Text.Json. |
|
|
CloudNative.CloudEvents.AspNetCore
ASP.Net Core extensions for CloudNative.CloudEvents |
|
|
CloudNative.CloudEvents.NewtonsoftJson
JSON support for the CNCF CloudEvents SDK, based on Newtonsoft.Json. |
|
|
CloudNative.CloudEvents.Kafka
Kafka extensions for CloudNative.CloudEvents |
GitHub repositories (8)
Showing the top 8 popular GitHub repositories that depend on CloudNative.CloudEvents:
| Repository | Stars |
|---|---|
|
Azure/azure-sdk-for-net
This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
|
|
|
ravendb/ravendb
ACID Document Database
|
|
|
drasi-project/drasi-platform
The Data Change Processing platform
|
|
|
LGouellec/streamiz
.NET Stream Processing Library for Apache Kafka 🚀
|
|
|
meteatamel/knative-tutorial
A collection of samples for Knative Serving, Knative Eventing and Knative-GCP projects.
|
|
|
PacktPublishing/The-Azure-Cloud-Native-Architecture-Mapbook
The Azure Cloud Native Architecture Mapbook, published by Packt
|
|
|
daohainam/microservice-patterns
Microservice pattern demos (Saga, EventSourcing, CQRS...) running on .NET Aspire
|
|
|
Azure/azure-functions-dapr-extension
Extension for interacting with Dapr APIs from an Azure Function
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.9.0 | 4,129 | 7/4/2026 |
| 2.8.0 | 9,767,002 | 8/7/2024 |
| 2.7.1 | 5,436,568 | 9/4/2023 |
| 2.7.0 | 448,897 | 7/31/2023 |
| 2.6.0 | 1,851,131 | 3/7/2023 |
| 2.5.1 | 3,436,217 | 11/10/2022 |
| 2.5.0 | 4,080,213 | 10/17/2022 |
| 2.4.0 | 578,215 | 9/8/2022 |
| 2.3.1 | 1,503,643 | 6/29/2022 |
| 2.3.0 | 283,662 | 5/31/2022 |
| 2.2.0 | 963,547 | 2/2/2022 |
| 2.1.1 | 1,532,625 | 7/21/2021 |
| 2.1.0 | 29,614 | 7/14/2021 |
| 2.0.0 | 3,698,693 | 6/15/2021 |
| 2.0.0-rc.1 | 6,611 | 6/7/2021 |
| 2.0.0-beta.3 | 2,718 | 5/12/2021 |
| 2.0.0-beta.2 | 4,054 | 5/5/2021 |
| 2.0.0-beta.1 | 186,266 | 11/11/2020 |
| 1.3.80 | 6,042,651 | 1/16/2020 |
| 1.0.71 | 29,643 | 11/21/2019 |