private void OnExecute(CommandLineApplication app)
        {
            // build dependencies
            var container = DependencyInjectionController.BuildConfigCommandDependencies();

            // run program
            using (var scope = container.BeginLifetimeScope())
            {
                var controller = scope.Resolve <ConfigsController>();
                controller.ShowCustomTextPredictionConfigs();
            }
        }
コード例 #2
0
        private async Task OnExecuteAsync(CommandLineApplication app)
        {
            // build dependencies
            var container = DependencyInjectionController.BuildConfigCommandDependencies();

            // run program
            using (var scope = container.BeginLifetimeScope())
            {
                var controller = scope.Resolve <ConfigsController>();
                await controller.SetCustomTextAuthoringConfigsAsync(CustomTextKey, EndpointUrl, AppId);
            }
        }
コード例 #3
0
        private async Task OnExecuteAsync(CommandLineApplication app)
        {
            // build dependencies
            var container = DependencyInjectionController.BuildConfigCommandDependencies();

            // run program
            using (var scope = container.BeginLifetimeScope())
            {
                var controller = scope.Resolve <ConfigsController>();
                await controller.LoadConfigsFromFile(configsFilePath);
            }
        }
コード例 #4
0
        private async Task OnExecuteAsync(CommandLineApplication app)
        {
            // build dependencies
            var container = DependencyInjectionController.BuildConfigCommandDependencies();

            // run program
            using (var scope = container.BeginLifetimeScope())
            {
                var controller = scope.Resolve <ConfigsController>();
                await controller.SetTextAnalyticsConfigsAsync(AzureResourceKey, AzureResourceEndpoint, DefaultLanguage, EnableSentimentByDefault, EnableNerByDefault, EnableKeyphraseByDefault);
            }
        }
コード例 #5
0
        private async Task OnExecuteAsync(CommandLineApplication app)
        {
            // build dependencies
            var container = DependencyInjectionController.BuildConfigCommandDependencies();

            // run program
            using (var scope = container.BeginLifetimeScope())
            {
                var controller = scope.Resolve <ConfigsController>();
                await controller.SetMsReadConfigsAsync(CognitiveServicesKey, EndpointUrl);
            }
        }
コード例 #6
0
        private async Task OnExecuteAsync(CommandLineApplication app)
        {
            // build dependencies
            var container = DependencyInjectionController.BuildConfigCommandDependencies();

            // run program
            using (var scope = container.BeginLifetimeScope())
            {
                var controller = scope.Resolve <ConfigsController>();
                await controller.SetLocalStorageConfigsAsync(SourceDirectory, DestinationDirectory);
            }
        }
コード例 #7
0
        private async Task OnExecuteAsync(CommandLineApplication app)
        {
            // build dependencies
            var container = DependencyInjectionController.BuildConfigCommandDependencies();

            // run program
            using (var scope = container.BeginLifetimeScope())
            {
                var controller = scope.Resolve <ConfigsController>();
                await controller.SetChunkerConfigsAsync(CharLimit, ChunkSectionLevel);
            }
        }
        private int OnExecute(CommandLineApplication app)
        {
            // build dependencies
            var container = DependencyInjectionController.BuildConfigCommandDependencies();

            // run program
            using (var scope = container.BeginLifetimeScope())
            {
                var controller = scope.Resolve <ConfigsController>();
                controller.ShowTextAnalyticsConfigs();
            }
            return(1);
        }