protected override void OnStart(string[] args) { LogRotation.Rotate(); Log.Setup("Service.log", false); Installation.Load(MPExtendedProduct.Service); host = new MPExtendedHost(); host.Open(); }
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(); }
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(); }
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(); }
protected override void OnStart(string[] args) { host = new MPExtendedHost(); host.Open(); }