Grain.DelayDeactivation(TimeSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Delay Deactivation of this activation at least for the specified time duration.
A positive timeSpan
value means “prevent GC of this activation for that time span”.
A negative timeSpan
value means “cancel the previous setting of the DelayDeactivation call and make this activation behave based on the regular Activation Garbage Collection settings”.
DeactivateOnIdle method would undo / override any current “keep alive” setting,
making this grain immediately available for deactivation.
protected virtual void DelayDeactivation (TimeSpan timeSpan);
protected void DelayDeactivation (TimeSpan timeSpan);
abstract member DelayDeactivation : TimeSpan -> unit
override this.DelayDeactivation : TimeSpan -> unit
member this.DelayDeactivation : TimeSpan -> unit
Protected Overridable Sub DelayDeactivation (timeSpan As TimeSpan)
Protected Sub DelayDeactivation (timeSpan As TimeSpan)
Parameters
- timeSpan
- TimeSpan