public static void Main() { DeadLatter _deadLetterChannel = new DeadLatter(); SubscriberService subscriberService = new SubscriberService(_deadLetterChannel); subscriberService.StartSubscriberService(); PublisherService publisherService = new PublisherService(_deadLetterChannel); publisherService.StartPublisherService(); Console.ReadLine(); }
public SubscriberService(DeadLatter _deadLetterChannel) { this._deadLetterChannel = _deadLetterChannel; }
public PublisherService(DeadLatter _deadLetterChannel) { this._deadLetterChannel = _deadLetterChannel; }