Esempio n. 1
0
        public async Task <bool> OutputDataViews(TextWriter outputWriter)
        {
            DataViewService        dataViewService = new DataViewService(connectorFactory);
            List <DataViewDetails> dataViews       = await dataViewService.GetAvailableDataViews();

            if (dataViews == null)
            {
                logger.LogInformation("Can't get dataviews from the API");
                return(false);
            }

            outputWriter.WriteLine("DataView names:");
            foreach (DataViewDetails dataView in dataViews)
            {
                outputWriter.WriteLine(dataView.Name);
            }
            return(true);
        }