private async Task OnDesiredPropertyUpdated(TwinCollection twinProperties, object userContext) { Dictionary <string, object> desiredProperties = AzureIoTHubDeviceTwinProxy.DictionaryFromTwinCollection(twinProperties); // Let the device management client process properties specific to device management await _dmClient.ApplyDesiredStateAsync(desiredProperties); }