public FileWatcherService() { InitializeComponent(); this.CanStop = true; this.CanPauseAndContinue = true; _wd = new BL.WatchDog(); _logger = new Logger(); _task = new Task(_wd.Start); }
static void Main(string[] args) { Logger logger = new Logger(); logger.Write(null, new BL.LogInfo() { LogValue = "Console client is started" }); BL.WatchDog wd = new BL.WatchDog(); wd.Parser.Loging += logger.Write; wd.Start(); Console.ReadKey(); }