public override void DeleteFile(string name) { UninterruptableMonitor.Enter(this); try { if (VERBOSE) { Console.WriteLine("nrtdir.deleteFile name=" + name); } #pragma warning disable 612, 618 if (cache.FileExists(name)) #pragma warning restore 612, 618 { cache.DeleteFile(name); } else { @delegate.DeleteFile(name); } } finally { UninterruptableMonitor.Exit(this); } }
public override void DeleteFile(string name) { lock (this) { if (VERBOSE) { Console.WriteLine("nrtdir.deleteFile name=" + name); } #pragma warning disable 612, 618 if (cache.FileExists(name)) #pragma warning restore 612, 618 { cache.DeleteFile(name); } else { @delegate.DeleteFile(name); } } }