Пример #1
0
 public void Subscribe()
 {
     Console.WriteLine($"Subscribing {_name} to {_subject.SubjectDetails()} ...");
     Console.WriteLine("Subscribed successfully.");
 }
 public void Subscribe()
 {
     Console.WriteLine($"Subscribing {_user} to {_subject.SubjectDetails()} ...");
     _subject.SubscribeObserver(this);
     Console.WriteLine("Subscribed successfully");
 }