protected override void Dispose(bool disposing) { // Dispose managed resources if (disposing) { // Dispose the wrapper store if (mCallbackStore != null) { IDisposable disposable = (IDisposable)mCallbackStore; disposable.Dispose(); mCallbackStore = null; } } }
/* ************************************************************** */ #region Construction and Finalization /// <summary> /// <see cref="M:Wombat.MamaWrapper.#ctor" /> /// </summary> public MamaPublisher() : base() { // Create the callback store mCallbackStore = new MamaCallbackStore<MamaSendCompleteCallback, MamaThrottledSendCompleteDelegate>(); }
/// <summary> /// <see cref="M:Wombat.MamaWrapper.#ctor(System.IntPtr)" /> /// </summary> internal MamaPublisher(IntPtr nativeHandle) : base(nativeHandle) { // Create the callback store mCallbackStore = new MamaCallbackStore<MamaSendCompleteCallback, MamaThrottledSendCompleteDelegate>(); }
protected override void Dispose(bool disposing, bool destroyNativeHandle = true) { // Dispose managed resources if (disposing) { // Dispose the wrapper store if (mCallbackStore != null) { IDisposable disposable = (IDisposable)mCallbackStore; disposable.Dispose(); mCallbackStore = null; } } base.Dispose(true, destroyNativeHandle); }