Skip to content

Commit 6cb616c

Browse files
committed
Fix method references
1 parent 217da5c commit 6cb616c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/iot-edge/tutorial-develop-for-linux.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ The sample C# code that comes with the project template uses the [ModuleClient C
359359

360360
1. In the Visual Studio Code explorer, open **modules** > **filtermodule** > **ModuleBackgroundService.cs**.
361361

362-
1. At the top of the **filtermodule** namespace, add three **using** statements for types that are used later:
362+
1. Before the **filtermodule** namespace, add three **using** statements for types that are used later:
363363

364364
```csharp
365365
using System.Collections.Generic; // For KeyValuePair<>
@@ -396,7 +396,7 @@ The sample C# code that comes with the project template uses the [ModuleClient C
396396

397397
1. Find the **ExecuteAsync** function. This function creates and configures a **ModuleClient** object, which allows the module to connect to the local Azure IoT Edge runtime to send and receive messages. After creating the **ModuleClient**, the code reads the **temperatureThreshold** value from the module twin's desired properties. The code registers a callback to receive messages from an IoT Edge hub via an endpoint called **input1**.
398398
399-
Replace the **ProcessMessageAsync** method with a new one that updates the name of the endpoint and the method that's called when input arrives. Also, add a **SetDesiredPropertyUpdateCallbackAsync** method for updates to the desired properties. To make this change, replace the last line of the **Init** method with the following code:
399+
Replace the call to the **ProcessMessageAsync** method with a new one that updates the name of the endpoint and the method that's called when input arrives. Also, add a **SetDesiredPropertyUpdateCallbackAsync** method for updates to the desired properties. To make this change, replace the last line of the **ExecuteAsync** method with the following code:
400400

401401
```csharp
402402
// Register a callback for messages that are received by the module.
@@ -413,7 +413,7 @@ The sample C# code that comes with the project template uses the [ModuleClient C
413413
await ioTHubModuleClient.SetInputMessageHandlerAsync("inputFromSensor", FilterMessages, ioTHubModuleClient);
414414
```
415415

416-
1. Add the **onDesiredPropertiesUpdate** method to the **Program** class. This method receives updates on the desired properties from the module twin, and updates the **temperatureThreshold** variable to match. All modules have their own module twin, which lets you configure the code that's running inside a module directly from the cloud.
416+
1. Add the **onDesiredPropertiesUpdate** method to the **ModuleBackgroundService** class. This method receives updates on the desired properties from the module twin, and updates the **temperatureThreshold** variable to match. All modules have their own module twin, which lets you configure the code that's running inside a module directly from the cloud.
417417
418418
```csharp
419419
static Task OnDesiredPropertiesUpdate(TwinCollection desiredProperties, object userContext)

0 commit comments

Comments
 (0)