/// <summary>
 /// Executes the get workflow trigger history command
 /// </summary>
 public override void ExecuteCmdlet()
 {
     base.ExecuteCmdlet();
     if (string.IsNullOrEmpty(this.HistoryName))
     {
         var enumerator =
             LogicAppClient.GetWorkflowTriggerHistories(this.ResourceGroupName, this.Name, this.TriggerName)
             .GetEnumerator();
         this.WriteObject(enumerator.ToIEnumerable <WorkflowTriggerHistory>(), true);
     }
     else
     {
         this.WriteObject(
             LogicAppClient.GetWorkflowTriggerHistory(this.ResourceGroupName, this.Name, this.TriggerName,
                                                      this.HistoryName), true);
     }
 }