예제 #1
0
 public void OnNewMail(object sender, NewMailEventArgs args)
 {
     Monitor.Enter(this);
     this._mailEventLog.PrintArgsMember(args);
     Monitor.Exit(this);
 }
예제 #2
0
        public void OnNewMailEvent(NewMailEventArgs args)
        {
            var tempHandler = Volatile.Read(ref this.NewMailHandler);

            tempHandler?.Invoke(this, args);
        }