示例#1
0
 public override void Send(string message, Colleague colleague)
 {
     this.colleagues.Where(c => c != colleague)
     .ToList()
     .ForEach(c => c.HandleNotification(message));
 }
 public abstract void Send(string Message, Colleague colleague);
示例#3
0
 public void Register(Colleague colleague)
 {
     colleague.SetMediator(this);
     this.colleagues.Add(colleague);
 }