protected override void OnStart(string[] args) { _engine = new PublishingEngine(); if (!_engine.Initialize(true)) { this.Stop(); } }
static void Test() { LogManager.Configure(new Logger()); PublishingEngine publishEngine = new PublishingEngine(); if (publishEngine.Initialize(false)) { publishEngine.Execute(); } }