static void Main(string[] args) { Task.Run(async() => { await AzureIoTHub.SendDeviceToCloudInteractiveMessagesAsync(); }).Wait(); }