Ejemplo n.º 1
0
 public void EndFSEventStream()
 {
     if (fsEventStreamStarted)
     {
         fsEventStream.Stop();
         fsEventStream.Invalidate();
     }
     fsEventStream.Dispose();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Dispose the FsStream.
        /// </summary>
        /// <param name="disposing">If set to <c>true</c> disposing.</param>
        protected void Dispose(bool disposing)
        {
            if (!disposed)
            {
                if (disposing)
                {
                    // Dispose of any managed resources of the derived class here.
                    EnableEvents = false;
                    FsStream.Invalidate();

                    StopRunLoop = true;
                    RunLoopThread.Join();
                    disposed = true;
                }
                // Dispose of any unmanaged resources of the derived class here.
            }
        }