Ejemplo n.º 1
0
 private static void AttachHook(IntPtr pointerToIRhinoFileEventWatcher)
 {
     if (g_watchers.TryGetValue(pointerToIRhinoFileEventWatcher, out RhinoFileWatcher watcher))
     {
         return;
     }
     watcher = new RhinoFileWatcher(pointerToIRhinoFileEventWatcher);;
     g_watchers[pointerToIRhinoFileEventWatcher] = watcher;
 }
Ejemplo n.º 2
0
 private static bool AttachHook(uint runtimeSerialNumber)
 {
     if (g_watchers.TryGetValue(runtimeSerialNumber, out RhinoFileWatcher watcher))
     {
         return(true);
     }
     watcher = new RhinoFileWatcher(runtimeSerialNumber);
     g_watchers[runtimeSerialNumber] = watcher;
     return(true);
 }
Ejemplo n.º 3
0
 private static void AttachHook(IntPtr pointerToIRhinoFileEventWatcher)
 {
     try
     {
         if (g_watchers.TryGetValue(pointerToIRhinoFileEventWatcher, out RhinoFileWatcher watcher))
         {
             return;
         }
         watcher = new RhinoFileWatcher(pointerToIRhinoFileEventWatcher);
         g_watchers[pointerToIRhinoFileEventWatcher] = watcher;
     }
     catch (Exception exception)
     {
         ReportException(exception);
     }
 }