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