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