private void OnSetAllDesiredProperties(object sender, RoutedEventArgs e) { StringBuilder json = new StringBuilder(); json.Append("{"); json.Append(TimeDesiredState.ToJson()); json.Append(","); json.Append(UIToCertificateConfiguration().ToJsonString()); json.Append(","); json.Append(RebootInfoDesiredState.ToJsonString()); json.Append(","); json.Append(WindowsUpdatePolicyDesiredState.ToJsonString()); json.Append(","); json.Append(UIToWindowsUpdatesConfiguration().ToJsonString()); json.Append(","); json.Append(WindowsTelemetryDesiredState.ToJsonString()); json.Append(","); json.Append(DeviceHealthAttestationDesiredState.ToJson()); json.Append(","); json.Append(WifiDesiredState.ToJson()); json.Append("}"); UpdateTwinData(DTRefreshing, json.ToString()).FireAndForget(); }
private void OnSetWindowsUpdatePolicyInfo(object sender, RoutedEventArgs e) { SetDesired(WindowsUpdatePolicyDesiredState.SectionName, WindowsUpdatePolicyDesiredState.ToJsonString()).FireAndForget(); }