Here are the examples of the csharp api System.IO.InotifyWatcher.RemoveRequestData(System.IO.InotifyData) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
19
Source : InotifyWatcher.cs
with MIT License
from GrapeCity
with MIT License
from GrapeCity
public void StopDispatching (FileSystemWatcher fsw)
{
InotifyData data;
lock (this) {
data = (InotifyData) watches [fsw];
if (data == null)
return;
if (RemoveRequestData (data)) {
StopMonitoringDirectory (data);
}
watches.Remove (fsw);
if (watches.Count == 0) {
stop = true;
IntPtr fd = FD;
FD = (IntPtr) (-1);
Close (fd);
}
if (!data.IncludeSubdirs)
return;
foreach (InotifyData idata in data.SubDirs.Values) {
if (RemoveRequestData (idata)) {
StopMonitoringDirectory (idata);
}
}
}
}
19
Source : InotifyWatcher.cs
with MIT License
from roozbehid
with MIT License
from roozbehid
public void StopDispatching (FileSystemWatcher fsw)
{
ParentInotifyData parent;
lock (this) {
parent = (ParentInotifyData) watches [fsw];
if (parent == null)
return;
if (RemoveRequestData (parent.data)) {
StopMonitoringDirectory (parent.data);
}
watches.Remove (fsw);
if (watches.Count == 0) {
stop = true;
IntPtr fd = FD;
FD = (IntPtr) (-1);
Close (fd);
}
if (!parent.IncludeSubdirs)
return;
foreach (InotifyData idata in parent.children)
{
if (RemoveRequestData (idata)) {
StopMonitoringDirectory (idata);
}
}
}
}