///GENMHASH:309B73D93D71EC09DB82348850B4DC3B:D542559E6A88EEE7C1240397E3414E87
 public RegistrySourceTriggerImpl WithTriggerStatus(TriggerStatus triggerStatus)
 {
     if (IsInCreateMode())
     {
         this.inner.Status = triggerStatus.ToString();
     }
     else
     {
         this.sourceTriggerUpdateParameters.Status = triggerStatus.ToString();
     }
     return(this);
 }
Ejemplo n.º 2
0
 ///GENMHASH:A41D9FDC7DEF92635CB0D8267DD421E4:C971DBFAAFFE750BCDF37C20A656AFA8
 public RegistryTask.Update.IUpdate UpdateBaseImageTrigger(string baseImageTriggerName, BaseImageTriggerType baseImageTriggerType, TriggerStatus triggerStatus)
 {
     this.taskUpdateParameters.Trigger.BaseImageTrigger = new BaseImageTriggerUpdateParameters()
     {
         BaseImageTriggerType = baseImageTriggerType.ToString(),
         Name   = baseImageTriggerName,
         Status = triggerStatus.ToString()
     };
     return(this);
 }
Ejemplo n.º 3
0
 ///GENMHASH:D257093B75A1FD6945C24122070979DA:06C7C22B7607C11E6DD1CC8B5181B9E5
 public ITaskCreatable WithBaseImageTrigger(string baseImageTriggerName, BaseImageTriggerType baseImageTriggerType, TriggerStatus triggerStatus)
 {
     if (this.inner.Trigger == null)
     {
         this.inner.Trigger = new TriggerProperties();
     }
     this.inner.Trigger.BaseImageTrigger = new BaseImageTrigger()
     {
         BaseImageTriggerType = baseImageTriggerType.ToString(),
         Name   = baseImageTriggerName,
         Status = triggerStatus.ToString()
     };
     return(this);
 }