public async Task <IEnumerable <AppCommandResult> > ListAppCommands(AppCommandQuery query) { var entryResult = await entryPoint.Load(); if (!entryResult.CanListAppCommands) { throw new InvalidOperationException($"Cannot list app commands for {entryPoint.Url}."); } var commands = await entryResult.ListAppCommands(query); return(commands.Items); }
public async Task <AppCommandCollectionResult> ListAppCommands(AppCommandQuery data) { var result = await this.client.LoadLinkWithData("ListAppCommands", data); return(new AppCommandCollectionResult(result)); }