public static void Stop() { if (!Started) { throw new Exception("NAND service hasn't started yet!"); } CreateWatcher.Stop(); DeleteWatcher.Stop(); Started = false; }
public static void Stop() { if (!Started) { throw new Exception("NAND service hasn't started yet!"); } CreateWatcher.Stop(); DeleteWatcher.Stop(); if (NANDSource != null) { NANDSource.AsStream().Close(); NANDSource.Dispose(); } Started = false; }