protected override void OnStart(string[] args) { LogRotation.Rotate(); Log.Setup("Service.log", false); Installation.Load(MPExtendedProduct.Service); host = new MPExtendedHost(); host.Open(); }
public static void Initialize() { // This method is called by the ASP.NET infrastructure using a PreApplicationStartMethodAttribute. LogRotation.Rotate(); Log.Setup("WebMediaPortal.log", false); Log.Debug("WebMediaPortal starting!"); Installation.Load(MPExtendedProduct.WebMediaPortal); InitializeExtensions(); }
protected override void OnStart(string[] args) { LogRotation.Rotate(); Log.Filename = "Service.log"; Log.ConsoleLogging = false; Log.TraceLogging = false; Log.Setup(); Installation.Load(MPExtendedProduct.Service); host = new MPExtendedHost(); host.Open(); }
protected override void OnStart(string[] args) { LogRotation.Rotate(); Log.Setup("WebMediaPortalHosting.log", false); Installation.Load(MPExtendedProduct.WebMediaPortal); host = new IISExpressHost(); Action start = host.Start; start.BeginInvoke(delegate(IAsyncResult param) { start.EndInvoke(param); }, host); }
static void Main(string[] args) { LogRotation.Rotate(); Log.Setup("ConsoleHost.log", true); Installation.Load(MPExtendedProduct.Service); var host = new MPExtendedHost(); host.Open(); ExitDetector.Install(delegate() { host.Close(); }); Console.ReadKey(); host.Close(); }
public static void Initialize() { try { // This method is called by the ASP.NET infrastructure using a PreApplicationStartMethodAttribute. LogRotation.Rotate(); Log.Filename = "WebMediaPortal.log"; Log.ConsoleLogging = false; Log.TraceLogging = false; Log.Setup(); Log.Debug("WebMediaPortal starting!"); Installation.Load(MPExtendedProduct.WebMediaPortal); EnvironmentSetup.SetupEnvironment(); InitializeExtensions(); } catch (Exception ex) { // TODO: Make sure this gets logged somewhere even if we haven't setup logging yet Log.Fatal("Application initialization failed", ex); } }