コード例 #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
ファイル: MMTimer.cs プロジェクト: mosaicsys/MosaicLibCS
 /// <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
ファイル: XmlFilePropertyBag.cs プロジェクト: radtek/BootFX
        /// <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
ファイル: TcpSerialIO.cs プロジェクト: mosaicsys/MosaicLibCS
        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
ファイル: ComSerialIO.cs プロジェクト: mosaicsys/MosaicLibCS
        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
ファイル: TcpSerialIO.cs プロジェクト: mosaicsys/MosaicLibCS
        // 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
ファイル: ComSerialIO.cs プロジェクト: mosaicsys/MosaicLibCS
        // 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
ファイル: UdpSerialIO.cs プロジェクト: mosaicsys/MosaicLibCS
 // this is called after StopPart has completed during dispose
 protected override void DisposeCalledPassdown(DisposeType disposeType)
 {
     base.DisposeCalledPassdown(disposeType);
 }
コード例 #12
0
ファイル: Disposable.cs プロジェクト: mosaicsys/MosaicLibCS
 /// <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
ファイル: MMTimer.cs プロジェクト: mosaicsys/MosaicLibCS
 /// <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
ファイル: UdpSerialIO.cs プロジェクト: mosaicsys/MosaicLibCS
 protected override void DisposeCalledPassdown(DisposeType disposeType)                  // this is called after StopPart has completed during dispose
 {
     base.DisposeCalledPassdown(disposeType);
 }