private static void OnCreated(object source, FileSystemEventArgs e) { if (client.CheckIsConnected()) { HandleReadFile(e.FullPath); } }