File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
content/dotnet-template-azure-iot-edge-module/CSharp Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ namespace SampleModule
9
9
using System . Threading ;
10
10
using System . Threading . Tasks ;
11
11
using Microsoft . Azure . Devices . Client ;
12
- using Microsoft . Azure . Devices . Client . Transport . Mqtt ;
13
12
14
13
class Program
15
14
{
@@ -42,8 +41,8 @@ public static Task WhenCancelled(CancellationToken cancellationToken)
42
41
/// </summary>
43
42
static async Task Init ( )
44
43
{
45
- MqttTransportSettings mqttSetting = new MqttTransportSettings ( TransportType . Mqtt_Tcp_Only ) ;
46
- ITransportSettings [ ] settings = { mqttSetting } ;
44
+ AmqpTransportSettings amqpSetting = new AmqpTransportSettings ( TransportType . Amqp_Tcp_Only ) ;
45
+ ITransportSettings [ ] settings = { amqpSetting } ;
47
46
48
47
// Open a connection to the Edge runtime
49
48
ModuleClient ioTHubModuleClient = await ModuleClient . CreateFromEnvironmentAsync ( settings ) ;
You can’t perform that action at this time.
0 commit comments