Esempio n. 1
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. 2
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();
        }