Пример #1
0
        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);
        }
Пример #2
0
        public async Task <AppCommandCollectionResult> ListAppCommands(AppCommandQuery data)
        {
            var result = await this.client.LoadLinkWithData("ListAppCommands", data);

            return(new AppCommandCollectionResult(result));
        }