Esempio n. 1
0
 public CoreAccessor(ILibAccessor accessor)
 {
     mLibAccessor = accessor;
     if (accessor.IsOpen)
     {
         mSignal = (SignalCallbackDelegate)Marshal.GetDelegateForFunctionPointer(accessor.GetProcAddress("Core_signal"), typeof(SignalCallbackDelegate));
         IsOpen  = true;
     }
 }
Esempio n. 2
0
 public void Dispose()
 {
     if (mLibAccessor == null)
     {
         return;
     }
     scc.Dispose();
     mLibAccessor.Dispose();
     mLibAccessor = null;
     IsOpen       = false;
 }