Build/Package | Status |
---|---|
master | |
dev | |
Microsoft.Azure.EventHubs | |
Microsoft.Azure.EventHubs.Processor |
This library is built using .NET Standard 2.0. For more information on what platforms are supported see .NET Platforms Support.
Azure Event Hubs is a highly scalable publish-subscribe service that can ingest millions of events per second and stream them into multiple applications. This lets you process and analyze the massive amounts of data produced by your connected devices and applications. Once Event Hubs has collected the data, you can retrieve, transform and store it by using any real-time analytics provider or with batching/storage adapters.
Refer to the online documentation to learn more about Event Hubs in general.
See our Contribution Guidelines.
The .NET client library for Azure Event Hubs allows for both sending events to and receiving events from an Azure Event Hub.
An event publisher is a source of telemetry data, diagnostics information, usage logs, or other log data, as part of an embedded device solution, a mobile device application, a game title running on a console or other device, some client or server based business solution, or a web site.
An event consumer picks up such information from the Event Hub and processes it. Processing may involve aggregation, complex computation and filtering. Processing may also involve distribution or storage of the information in a raw or transformed fashion. Event Hub consumers are often robust and high-scale platform infrastructure parts with built-in analytics capabilites, like Azure Stream Analytics, Apache Spark, or Apache Storm.
Most applications will act either as an event publisher or an event consumer, but rarely both. The exception are event consumers that filter and/or transform event streams and then forward them on to another Event Hub; an example for such is Azure Stream Analytics.
https://github.com/Azure/azure-event-hubs/tree/master/samples
Make sure you have .NET Core Cross-Platform Development SDK installed. If it is missing, you can install the SDK by running Visual Studio Installer. See https://www.microsoft.com/net/core#windowscmd for VS 2017 and SDK installation.
In order to run the unit tests, you will need to do the following:
-
Deploy the Azure Resource Manager template located at /build/azuredeploy.json by clicking the following button:
Running the above template will provision an Event Hubs namespace along with the required entities to successfully run the unit tests.
-
Add an Environment Variable named
azure-event-hubs-dotnet/connectionstring
and set the value as the connection string of the newly created namespace. Please note that if you are using Visual Studio, you must restart Visual Studio in order to use new Environment Variables. -
Add an Environment Variable named
azure-event-hubs-dotnet/storageconnectionstring
and set the value as the connection string of the newly created storage account.
Once you have completed the above, you can run dotnet test
from the /test/Microsoft.Azure.EventHubs.Tests
directory.
The standard way to manage Azure resources is by using Azure Resource Manager. In order to use functionality that previously existed in the .NET Framework Service Bus client library, you will need to use the Microsoft.Azure.Management.EventHub
library. This will enable use cases that dynamically create/read/update/delete resources. The following links will provide more information on the new library and how to use it.