Example #1
0
        public static void Clean()
        {
            _cmmdReceiver.Stop();
            _cmmdReceiver.Dispose();

            var cmmdFiles = Directory.EnumerateFiles(CommandFile.SharedFolder, $"*{CommandFile.FileExtension}").ToArray();

            Parallel.ForEach(cmmdFiles, (f) => File.Delete(f));

            File.Delete(_localDbFilePath);
            File.Delete(_sharedFolderDbFilePath);
        }
 public Task StopAsync(CancellationToken cancellationToken)
 {
     DataReceiver.Dispose();
     CommandReceiver.Dispose();
     return(Task.CompletedTask);
 }