protected virtual void Dispose(bool disposing)
 {
     if (!disposedValue)
     {
         if (disposing)
         {
             manager.Dispose();
             manager = null;
         }
         disposedValue = true;
     }
 }
 public SnapshotService()
 {
     manager = new SnapshotManager();
     manager.SnapshotReceived += OnSnapshotReceived;
     manager.Start();
 }