protected async Task SetReportedPropertyAsync(string name, dynamic value) { var collection = new TwinCollection(); TwinCollectionExtension.Set(collection, name, value); await Transport.UpdateReportedPropertiesAsync(collection); }
protected async Task SetReportedPropertyAsync(Dictionary <string, dynamic> pairs) { var collection = new TwinCollection(); foreach (var pair in pairs) { TwinCollectionExtension.Set(collection, pair.Key, pair.Value); } await Transport.UpdateReportedPropertiesAsync(collection); }