Esempio n. 1
0
 /// <summary>
 /// Called when a garbage collection run segment has been initialized.
 /// </summary>
 /// <param name="args">The event data.</param>
 public override void OnGarbageCollectionInitialized(
     IGarbageCollectionInitializedArgs args)
 {
     this.entityCount         = args.Count;
     this.entitiesDeleted     = 0;
     this.lastRefreshDateTime = DateTime.Now;
     this.PrintVariableCountOutcome(
         args.Count,
         Resources.EntityIdentified,
         Resources.EntitiesIdentifiedFormat);
     if (this.entityCount > 0)
     {
         this.PrintEntityDeletionProgressLabel();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Called when a garbage collection run segment has been initialized.
 /// </summary>
 /// <param name="args">The event data.</param>
 public virtual void OnGarbageCollectionInitialized(
     IGarbageCollectionInitializedArgs args)
 {
 }
Esempio n. 3
0
 /// <summary>
 /// Called when a garbage collection run segment has been initialized.
 /// </summary>
 /// <param name="args">The event data.</param>
 void IEventReceiver <IGarbageCollectionInitializedArgs> .Occurred(
     IGarbageCollectionInitializedArgs args)
 {
     this.OnGarbageCollectionInitialized(args);
 }
Esempio n. 4
0
 /// <summary>
 /// To be called when a garbage collection run segment has been initialized.
 /// </summary>
 /// <param name="args">The event data.</param>
 public void GarbageCollectionInitialized(IGarbageCollectionInitializedArgs args)
 {
     this.Dispatch(args);
 }