示例#1
0
 public static void CreateGroupDispose <T>(DisposeType disposeType, T data, bool transmit = true)
 {
     /* if (disposeType == DisposeType.LitJson)
      * {
      * LitJsonInstructionFactory.CreateGroupDispose((JsonData)(object) data , false );
      * }*/
 }
示例#2
0
 /// <summary>
 /// Implementation for abstract DisposableBase: regardless of DisposeType, if the timer period has been set then this method will invoke winmm_dll.timeEndPeriod to release the acquired timer resolution.
 /// </summary>
 protected override void Dispose(DisposeType type)
 {
     if (periodHasBeenSet)
     {
         periodHasBeenSet = false;
         winmm_dll.timeEndPeriod(periodMilliseconds);
     }
 }
示例#3
0
        /// <summary>
        /// Disposes the object.
        /// </summary>
        /// <param name="disposeType"></param>
        /// <remarks>For this class, the method defers to <see cref="Save"></see>.</remarks>
        protected override void Dispose(DisposeType disposeType)
        {
            // us...
            this.Save();

            // base...
            base.Dispose(disposeType);
        }
示例#4
0
        protected override void DisposeCalledPassdown(DisposeType disposeType)                  // this is called after StopPart has completed during dispose
        {
            base.DisposeCalledPassdown(disposeType);

            if (disposeType == DisposeType.CalledExplicitly)
            {
                DisposeListenSocket();
            }
        }
示例#5
0
        protected override void DisposeCalledPassdown(DisposeType disposeType)                  // this is called after StopPart has completed during dispose
        {
            base.DisposeCalledPassdown(disposeType);

            if (disposeType == DisposeType.CalledExplicitly)
            {
                MosaicLib.Utils.Fcns.DisposeOfObject(ref sp);
            }
        }
示例#6
0
        /// <summary>
        /// Disposes the bag.
        /// </summary>
        protected virtual void Dispose(DisposeType disposeType)
        {
            // reset...
            if (_innerValues != null)
            {
                _innerValues.Clear();
                _innerValues = null;
            }

            // suppress finalization...
            GC.SuppressFinalize(this);
        }
示例#7
0
 public static extern MagickBooleanType MagickSetImageDispose(IntPtr magickWand1, DisposeType disposeType2);
示例#8
0
        // this is called after StopPart has completed during dispose
        protected override void DisposeCalledPassdown(DisposeType disposeType)
        {
            base.DisposeCalledPassdown(disposeType);

            if (disposeType == DisposeType.CalledExplicitly)
                DisposeListenSocket();
        }
示例#9
0
 protected override void Dispose(DisposeType disposeType)
 {
     if (disposeType == DisposeType.CalledExplicitly)
     {
         Shutdown();
     }
     else
     {
         // else this is being invoked by the finalizer.
         // This only occurs once there are no more references to this object on any heap in this application space.
         //	as such we can safely assume that any thread that was created within this object, to run a delegated method
         //	in the object, must have completed or been otherwise reclaimed otherwise it would still own a reference to the
         //	object that is being finalized... (which better not be the case...)
     }
 }
示例#10
0
        // this is called after StopPart has completed during dispose
        protected override void DisposeCalledPassdown(DisposeType disposeType)
        {
            base.DisposeCalledPassdown(disposeType);

            if (disposeType == DisposeType.CalledExplicitly)
                MosaicLib.Utils.Fcns.DisposeOfObject(ref sp);
        }
示例#11
0
 // this is called after StopPart has completed during dispose
 protected override void DisposeCalledPassdown(DisposeType disposeType)
 {
     base.DisposeCalledPassdown(disposeType);
 }
示例#12
0
 /// <summary>
 /// This virtual method may be overriden by a derived class and is used to perform resource cleanup either
 /// when a user of this object explicitly invokes its public Dispose() method or when this object's Finalizer is called.
 /// The default implementation does nothing directly, however the internal method that calls this method for the DisposeType.CalledExplicitly case
 /// will also invoke each of the System.Action delegates that have been given to this base class using the AddExplicitDisposeAction method.
 /// </summary>
 /// <param name="disposeType">
 /// Defines the source of the Dispose call.  Used by invoked method to determine if it can safely access subordinate reference objects
 /// </param>
 /// <remarks>
 /// When invoked Explicitly this method should release all held resources and should invoke Dispose on any IDisposable reference objects that it is the
 /// unique owner of.
 /// When invoked by the Finalizer this method should explicitly release any unmanaged resources that it has obtained but must not invoke any methods on
 /// non-null reference object handles that it continues to have access to.
 /// </remarks>
 protected virtual void Dispose(DisposeType disposeType)
 {
 }
示例#13
0
 /// <summary>
 /// Implementation for abstract DisposableBase: regardless of DisposeType, if the timer period has been set then this method will invoke winmm_dll.timeEndPeriod to release the acquired timer resolution.
 /// </summary>
 /// <param name="type"></param>
 protected override void Dispose(DisposeType type)
 {
     if (periodHasBeenSet)
     {
         periodHasBeenSet = false;
         winmm_dll.timeEndPeriod(periodMilliseconds);
     }
 }
示例#14
0
 protected override void DisposeCalledPassdown(DisposeType disposeType)                  // this is called after StopPart has completed during dispose
 {
     base.DisposeCalledPassdown(disposeType);
 }