public InstallerBuilderServices(ILoggerFactory loggerFactory, IWorkspaceSelector workspaceSelector) { LoggerFactory = loggerFactory; _operatingSystemServices = new OperatingSystemServices(loggerFactory); _workspaceSelector = workspaceSelector; }
static void Main(string[] args) { LoggerFactory = Log4NetNotifierFactory.FromCurrentUserAppData("NdlLayoutConverter"); try { OperatingSystemServices = new OperatingSystemServices(LoggerFactory); /*args = new string[] * { * @"C:\CasinoTools\NDLLayoutAdmin\Head\src\LayoutConverter\OriginalFiles\LayoutToolOutputFile.lyt", * @"C:\CasinoTools\NDLLayoutAdmin\Head\src\LayoutConverter\OriginalFiles\navigation_plan_ndl.xmm", * @"C:\CasinoTools\NDLLayoutAdmin\Head\src\LayoutConverter\OriginalFiles\skin.xml" * }; */ var commandLineArgs = ParseCommandLineArgs(args); var inputFiles = ReadInputFiles(commandLineArgs); Convert(inputFiles, commandLineArgs); Logger.Info("DONE!"); } catch (MissingCommandLineArgumentsException) { Logger.Info(CommandLineParser.UsageInfo); Environment.Exit(1); } catch (InvalidCommandLineArgumentsException ex) { Logger.Error(ex.Message); Logger.Info(CommandLineParser.UsageInfo); Environment.Exit(1); } catch (ValidationException ex) { Logger.Error(ex.Message); Environment.Exit(1); } catch (Exception ex) { Logger.Exception(ex); Environment.Exit(1); } }
public MockInstallerBuilderServices(ILoggerFactory loggerFactory) { LoggerFactory = loggerFactory; _operatingSystemServices = new OperatingSystemServices(loggerFactory); }