Ejemplo n.º 1
0
 protected override void OnStart(string[] args)
 {
     LogRotation.Rotate();
     Log.Setup("Service.log", false);
     Installation.Load(MPExtendedProduct.Service);
     host = new MPExtendedHost();
     host.Open();
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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();
        }
Ejemplo n.º 6
0
        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);
            }
        }