Exemplo n.º 1
0
        public override void Initialize()
        {
            base.Initialize();

            var progress = new Progress <BuilderProgress>();

            progress.ProgressChanged += ProgressChanged;

            _context                   = new AdminBuildContext(CurrentWindow.AdminSettings, progress);
            _context.Logger            = new MHLab.Patch.Utilities.Logging.Logger(CurrentWindow.AdminSettings.GetLogsFilePath());
            _context.Serializer        = new NewtonsoftSerializer();
            _context.LocalizedMessages = CurrentWindow.Localization;
            _context.Initialize();

            _builder = new BuildBuilder(_context);
        }
        public override void Initialize()
        {
            base.Initialize();

            var progress = new Progress <BuilderProgress>();

            progress.ProgressChanged += ProgressChanged;

            _context                   = new AdminBuildContext(CurrentWindow.AdminSettings, progress);
            _context.Logger            = new SimpleLogger(_context.FileSystem, CurrentWindow.AdminSettings.GetLogsFilePath(), CurrentWindow.AdminSettings.DebugMode);
            _context.Serializer        = new JsonSerializer();
            _context.LocalizedMessages = CurrentWindow.Localization;
            _context.Initialize();

            _builder = new BuildBuilder(_context);
        }