Esempio 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();
 }
Esempio n. 2
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();
        }
Esempio n. 3
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();
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
#if DEBUG
            // optimize for speed in debug builds
            var host = new MPExtendedHost(new List <Type>
            {
                typeof(MPExtended.Services.MediaAccessService.MediaAccessService),
                typeof(MPExtended.Services.TVAccessService.TVAccessService),
                typeof(MPExtended.Services.StreamingService.StreamingService),
                typeof(MPExtended.Services.UserSessionService.UserSessionProxyService)
            });
#else
            var host = new MPExtendedHost();
#endif
            host.Open();

            ExitDetector.Install(delegate()
            {
                host.Close();
            });

            Console.ReadKey();
            host.Close();
        }
Esempio n. 5
0
 protected override void OnStart(string[] args)
 {
     host = new MPExtendedHost();
     host.Open();
 }