Exemple #1
0
        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;
                }
            }
		}
Exemple #2
0
        /* ************************************************************** */
        #region Construction and Finalization

		/// <summary>
		/// <see cref="M:Wombat.MamaWrapper.#ctor" />
		/// </summary>
		public MamaPublisher() : base()
		{
			// Create the callback store
            mCallbackStore = new MamaCallbackStore<MamaSendCompleteCallback, MamaThrottledSendCompleteDelegate>();
		}
Exemple #3
0
		/// <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>();            
        }
Exemple #4
0
 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);
 }