The documentation on reading D2C messages shows how to do it with .Net Framework 4.5.1 but not for .Net Standard applications. It references WindowsAzure.ServiceBus which only supports .Net Framework.
.Net Standard uses the new Nuget package Microsoft.Azure.EventHubs
You can edit the document using Edit button on top right.
@yzhong94 this is not as simple as pointing to the new package - there are substantial code changes that a user needs to do to use EventHubs vs ServiceBus. We need a sample & document to guide developers throughout the port.
@ryanzjohnson is there such a porting document available from the ServiceBus team?
No document exists. One package is for .Net Framework the other is for .Net Core.
Thank you for the feedback. We will add this in our backlog and look for providing this information in the next update.
The new NetCore EventHub SDK doesn't have support for IoT Hub connection strings.
Support is tracked by https://github.com/Azure/azure-event-hubs-dotnet/issues/167
While we get to write a proper sample for this, please see code here on how to connect to the IoT Hub's associated EventHub from a netstandard application: https://github.com/Azure/azure-iot-sdk-csharp/blob/master/e2e/test/netstandard13/MessageE2ETests.NetCore.cs#L193
The above link seems to be getting a 404
https://github.com/Azure/azure-iot-sdk-csharp/blob/master/e2e/test/MessageE2ETests.cs @CIPop is the the right link, the folder for netstandard13 has been removed.
Samples are now placed in the Azure-Samples repository, with the messaging sample placed here: https://github.com/Azure-Samples/azure-iot-samples-csharp/tree/master/iot-hub/Samples/device/MessageSample
For and end-to-end flow of sending telemtry from device, and inspecting the telemetry on IoT hub's associated Event hub, you can see our end-to-end test here: https://github.com/Azure/azure-iot-sdk-csharp/blob/master/e2e/test/MessageSendE2ETests.cs#L286
@CIPop, @ash2017, @bobjac, @abhipsaMisra, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey
Most helpful comment
The above link seems to be getting a 404