Dispose() публичный Метод

Stop monitoring file.
public Dispose ( ) : void
Результат void
Пример #1
0
 protected override void PostStop()
 {
     _observer.Dispose();
     _observer = null;
     _fileStreamReader.Close();
     _fileStreamReader.Dispose();
     base.PostStop();
 }
Пример #2
0
 /// <summary>
 /// Cleanup OS handles for <see cref="_fileStreamReader"/> and <see cref="FileObserver"/>.
 /// </summary>
 protected override void PostStop()
 {
     _observer.Dispose();
     _observer = null;
     base.PostStop();
 }