Example #1
0
        public static async Task MainAsync(string[] args)
        {
            try
            {
                _connectionManager = new ConnectionManager();

                await CleanupWorkspacesAsync();

                await CreateWorkspaceAsync();

                await TransferDocumentsAsync();

                await CreateAndRunProcessingSetAsync();

                await CreateAndBuildDtSearch();

                await TagDocumentsAsResponsiveAsync();

                await CreateAndRunImagingSetAsync();

                await CreateAndRunProductionAsync();

                await DownloadProductionAsync();
            }
            catch (Exception ex)
            {
                string errorMessage = $"An error occured in the {nameof(MainAsync)} method.";
                Console2.WriteErrorLine(errorMessage);
                throw new Exception(errorMessage, ex);
            }
            finally
            {
                await DeleteWorkspaceAsync();
            }
        }