public override void ExecuteCmdlet() { IEnumerable <VMRoleSizeProfile> results = null; var VMRoleSizeProfileOperations = new VMRoleSizeProfileOperations(this.WebClientFactory); if (this.ParameterSetName == WAPackCmdletParameterSets.Empty) { results = VMRoleSizeProfileOperations.Read(); } else if (this.ParameterSetName == WAPackCmdletParameterSets.FromName) { results = VMRoleSizeProfileOperations.Read(new Dictionary <string, string>() { { "Name", Name } }); } this.GenerateCmdletOutput(results); }
public override void ExecuteCmdlet() { IEnumerable<VMRoleSizeProfile> results = null; var VMRoleSizeProfileOperations = new VMRoleSizeProfileOperations(this.WebClientFactory); if (this.ParameterSetName == WAPackCmdletParameterSets.Empty) { results = VMRoleSizeProfileOperations.Read(); } else if (this.ParameterSetName == WAPackCmdletParameterSets.FromName) { results = VMRoleSizeProfileOperations.Read(new Dictionary<string, string>() { {"Name", Name} }); } this.GenerateCmdletOutput(results); }