Beispiel #1
0
 /// <inheritdoc/>
 public void UpdateReportedProperties(TwinCollection reportedProperties)
 {
     lock (_lock) {
         if (Twin.Properties == null)
         {
             Twin.Properties = new TwinPropertiesModel();
         }
         Twin.Properties.Reported = Merge(Twin.Properties.Reported,
                                          reportedProperties.ToModel());
         Twin.LastActivityTime = DateTime.UtcNow;
         Twin.Etag             = Device.Etag = Guid.NewGuid().ToString();
     }
 }