using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace ConsoleApplication1
{
internal class Program
{
private static void Main(string[] args)
{
var watcher1 = new FileWatch(@"d:\data.txt");
watcher1.Start();
var watcher2 = new FileWatch(@"e:\123.txt");
watcher2.Start();
Console.Read();
}
}
public class FileWatch
{
private readonly FileSystemWatcher _fileWatcher;
private readonly HashSet<string> _hstbWatcher;
public FileWatch(string filePath)
{
_hstbWatcher = new HashSet<string>
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace ConsoleApplication1
{
internal class Program
{
private static void Main(string[] args)
{
var watcher1 = new FileWatch(@"d:\data.txt");
watcher1.Start();
var watcher2 = new FileWatch(@"e:\123.txt");
watcher2.Start();
Console.Read();
}
}
public class FileWatch
{
private readonly FileSystemWatcher _fileWatcher;
private readonly HashSet<string> _hstbWatcher;
public FileWatch(string filePath)
{
_hstbWatcher = new HashSet<string>