using System;
using Prism.Events;

namespace Valg.EVA.Skanning.Scan.ReadSoftContracts.Events
{
    public class ScanJobFinishedEvent : PubSubEvent
    {
        public DateTime CreationTime = DateTime.Now;

        public ScanJobFinishedEvent() : base()
        {
            System.Diagnostics.Debug.WriteLine($"*** Constructor ***; my creation time was {CreationTime}");
        }

        public override void Publish()
        {
            System.Diagnostics.Debug.WriteLine($"*** Publishing ***; my creation time was {CreationTime}");
            base.Publish();
        }

        public override void Unsubscribe(Action subscriber)
        {
            System.Diagnostics.Debug.WriteLine($"*** Unsubscribing ***; my creation time was {CreationTime}");
            base.Unsubscribe(subscriber);
        }
    }
}
