Пример #1
0
        public static void Main()
        {
            DeadLatter        _deadLetterChannel = new DeadLatter();
            SubscriberService subscriberService  = new SubscriberService(_deadLetterChannel);

            subscriberService.StartSubscriberService();

            PublisherService publisherService = new PublisherService(_deadLetterChannel);

            publisherService.StartPublisherService();

            Console.ReadLine();
        }
Пример #2
0
 public SubscriberService(DeadLatter _deadLetterChannel)
 {
     this._deadLetterChannel = _deadLetterChannel;
 }
Пример #3
0
 public PublisherService(DeadLatter _deadLetterChannel)
 {
     this._deadLetterChannel = _deadLetterChannel;
 }