Exemple #1
0
        public static void Stop()
        {
            if (!Started)
            {
                throw new Exception("NAND service hasn't started yet!");
            }

            CreateWatcher.Stop();
            DeleteWatcher.Stop();

            Started = false;
        }
Exemple #2
0
        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;
        }