public Test() { winlogger = new WinLogWirter(); AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); logger = LogManager.GetLogger(GetType()); scheduler = StdSchedulerFactory.GetDefaultScheduler(); }
public Service1() { InitializeComponent(); winlogger = new WinLogWirter(); AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); logger = LogManager.GetLogger(GetType()); scheduler = StdSchedulerFactory.GetDefaultScheduler(); }