Пример #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();
     }
 }
Пример #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)
 {
 }
Пример #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);
 }
Пример #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);
 }