예제 #1
0
 public void AddJob(JobPost jobPosting)
 {
     Notify(jobPosting);
 }
예제 #2
0
 protected void Notify(JobPost jobPosting)
 {
     observers.ForEach(observer => observer.OnJobPosted(jobPosting));
 }
 public void OnJobPosted(JobPost job)
 {
     // Do something with the job posting
     Console.WriteLine($"Hi {name}! New job posted: {job.getTitle()}");
 }