Exemplo n.º 1
0
        private async Task OnExecute(CommandLineApplication app)
        {
            // build dependencies
            var container = DependencyInjectionController.BuildIAPControllerDependencies();

            // run program
            using (var scope = container.BeginLifetimeScope())
            {
                var controller = scope.Resolve <IIAPProccessController>();
                await controller.Run();
            }
        }
Exemplo n.º 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.LoadConfigsFromFile(configsFilePath);
            }
        }
        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();
            }
        }
Exemplo n.º 4
0
        private async Task OnExecute(CommandLineApplication app)
        {
            // build dependencies
            var container = DependencyInjectionController.BuildPredictCommandDependencies();

            // run program
            using (var scope = container.BeginLifetimeScope())
            {
                var controller = scope.Resolve <PredictionController>();
                await controller.Predict(Source, Destination, ChunkType, CognitiveService);
            }
        }
Exemplo n.º 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.SetCustomTextAuthoringConfigsAsync(CustomTextKey, EndpointUrl, AppId);
            }
        }
Exemplo n.º 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.SetTextAnalyticsConfigsAsync(AzureResourceKey, AzureResourceEndpoint, DefaultLanguage, EnableSentimentByDefault, EnableNerByDefault, EnableKeyphraseByDefault);
            }
        }
        private async Task OnExecuteAsync(CommandLineApplication app)
        {
            // build dependencies
            var container = DependencyInjectionController.BuildParseCommandDependencies();

            // run program
            using (var scope = container.BeginLifetimeScope())
            {
                var controller = scope.Resolve <ParserController>();
                await controller.ExtractText(Source, Destination, ChunkType);
            }
        }
Exemplo n.º 8
0
        private async Task OnExecute(CommandLineApplication app)
        {
            // build dependencies
            var container = DependencyInjectionController.BuildEvaluateCommandDependencies();

            // run program
            using (var scope = container.BeginLifetimeScope())
            {
                var controller = scope.Resolve <BatchTestingController>();
                await controller.EvaluateCustomTextAppAsync(Source, Destination);
            }
        }
        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);
            }
        }
Exemplo n.º 10
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);
            }
        }
Exemplo n.º 11
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);
        }