Example #1
0
 /// <summary>
 /// 移除观察者
 /// </summary>
 public void DeleteObserver(EmailReceiveObserver observer)
 {
     if (this.observers != null)
     {
         this.observers.Remove(observer);
     }
 }
Example #2
0
 /// <summary>
 /// 添加观察者
 /// </summary>
 public void AddObserver(EmailReceiveObserver observer)
 {
     if (this.observers != null)
     {
         observers.Add(observer);
     }
 }