diff --git a/content/dotnet-template-azure-iot-edge-module/CSharp/Program.cs b/content/dotnet-template-azure-iot-edge-module/CSharp/Program.cs index fdc2b63..cb726bc 100644 --- a/content/dotnet-template-azure-iot-edge-module/CSharp/Program.cs +++ b/content/dotnet-template-azure-iot-edge-module/CSharp/Program.cs @@ -9,6 +9,7 @@ namespace SampleModule using System.Threading; using System.Threading.Tasks; using Microsoft.Azure.Devices.Client; + using Microsoft.Azure.Devices.Client.Transport.Mqtt; class Program { @@ -41,8 +42,8 @@ public static Task WhenCancelled(CancellationToken cancellationToken) /// static async Task Init() { - AmqpTransportSettings amqpSetting = new AmqpTransportSettings(TransportType.Amqp_Tcp_Only); - ITransportSettings[] settings = { amqpSetting }; + MqttTransportSettings mqttSetting = new MqttTransportSettings(TransportType.Mqtt_Tcp_Only); + ITransportSettings[] settings = { mqttSetting }; // Open a connection to the Edge runtime ModuleClient ioTHubModuleClient = await ModuleClient.CreateFromEnvironmentAsync(settings);