public override void ExecuteCmdlet() { // get the current firewall rule if (string.IsNullOrEmpty(Name)) { WriteObject(DataLakeStoreClient.ListFirewallRules(ResourceGroupName, Account) .Select(element => new DataLakeStoreFirewallRule(element)) .ToList(), true); } else { WriteObject(new DataLakeStoreFirewallRule(DataLakeStoreClient.GetFirewallRule(ResourceGroupName, Account, Name))); } }