Skip to content

Instantly share code, notes, and snippets.

@fzankl
Created January 24, 2021 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fzankl/fb060631b665af159fab99f41455df72 to your computer and use it in GitHub Desktop.
Save fzankl/fb060631b665af159fab99f41455df72 to your computer and use it in GitHub Desktop.
Waiting for an incoming device stream request from Azure IoT Hub.
var deviceClient = DeviceClient.CreateFromConnectionString(
deviceConnectionString,
TransportType.Amqp_WebSocket_Only);
var streamRequest = await deviceClient.WaitForDeviceStreamRequestAsync(
cancellationTokenSource.Token).ConfigureAwait(false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment