private static void OnChanged(Guid token) { WatchEventHandler handler = Changed; if (handler != null) { handler(null, new WatchEventArgs(token)); } }
private void OnTick(object state) { WatchEventHandler handler = Changed; if (handler != null) { handler(this, new WatchEventArgs(_token)); } }