/// <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);
     }
 }
コード例 #2
0
 /// <summary>
 /// Executes the get workflow trigger history command
 /// </summary>
 public override void ExecuteCmdlet()
 {
     base.ExecuteCmdlet();
     if (string.IsNullOrEmpty(this.HistoryName))
     {
         var page = new Page <WorkflowTriggerHistory>();
         int i    = 0;
         do
         {
             page = this.LogicAppClient.GetWorkflowTriggerHistories(this.ResourceGroupName, this.Name, this.TriggerName, page.NextPageLink);
             this.WriteObject(page.GetEnumerator().ToIEnumerable <WorkflowTriggerHistory>(), true);
             i++;
         }while (this.FollowNextPageLink && !string.IsNullOrWhiteSpace(page.NextPageLink) && i <= this.MaximumFollowNextPageLink);
     }
     else
     {
         this.WriteObject(
             LogicAppClient.GetWorkflowTriggerHistory(this.ResourceGroupName, this.Name, this.TriggerName,
                                                      this.HistoryName), true);
     }
 }