Esempio n. 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();
        }
Esempio n. 2
0
 public SubscriberService(DeadLatter _deadLetterChannel)
 {
     this._deadLetterChannel = _deadLetterChannel;
 }
 public PublisherService(DeadLatter _deadLetterChannel)
 {
     this._deadLetterChannel = _deadLetterChannel;
 }