public static void CreateGroupDispose <T>(DisposeType disposeType, T data, bool transmit = true) { /* if (disposeType == DisposeType.LitJson) * { * LitJsonInstructionFactory.CreateGroupDispose((JsonData)(object) data , false ); * }*/ }
/// <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); } }
/// <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); }
protected override void DisposeCalledPassdown(DisposeType disposeType) // this is called after StopPart has completed during dispose { base.DisposeCalledPassdown(disposeType); if (disposeType == DisposeType.CalledExplicitly) { DisposeListenSocket(); } }
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); } }
/// <summary> /// Disposes the bag. /// </summary> protected virtual void Dispose(DisposeType disposeType) { // reset... if (_innerValues != null) { _innerValues.Clear(); _innerValues = null; } // suppress finalization... GC.SuppressFinalize(this); }
public static extern MagickBooleanType MagickSetImageDispose(IntPtr magickWand1, DisposeType disposeType2);
// this is called after StopPart has completed during dispose protected override void DisposeCalledPassdown(DisposeType disposeType) { base.DisposeCalledPassdown(disposeType); if (disposeType == DisposeType.CalledExplicitly) DisposeListenSocket(); }
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...) } }
// 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); }
// this is called after StopPart has completed during dispose protected override void DisposeCalledPassdown(DisposeType disposeType) { base.DisposeCalledPassdown(disposeType); }
/// <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) { }
/// <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); } }
protected override void DisposeCalledPassdown(DisposeType disposeType) // this is called after StopPart has completed during dispose { base.DisposeCalledPassdown(disposeType); }