예제 #1
0
        public void OnPubComputer(PubEventArgs e)
        {
            PubComputerEventHandler handler = PubComputer;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #2
0
 public void Receive(object sender, PubEventArgs e)
 {
     Console.WriteLine(e.PubDate + ":  " + this._name + " 已收到订阅的 " + e.MagzineName);
 }