static int CreateCsDomainFiles(CsDomainGeneration opts) { int returnCode = 0; var logger = GetLogger(); logger.Information($"File : {opts.FilePath}"); do { try { CsDomainGenerationProcess process = new CsDomainGenerationProcess(logger, opts); returnCode = process.Execute(); if (returnCode != 0) { break; } } catch (Exception exception) { logger.Error(exception, "CreateCsDomainFiles, unhandled exception caught."); returnCode = -1; break; } } while(false); return(returnCode); }
public CsDomainGenerationProcess(ILogger logger, CsDomainGeneration options) { _logger = logger; _options = options; _pathProject = System.IO.Path.GetDirectoryName(_options.FilePath); }