示例#1
0
 public Program()
 {
     Console.WriteLine("Init Recipient list");
     _factory = new ConnectionFactory
     {
         HostName = Constants.Host,
         Port     = Constants.Port,
         UserName = Constants.UserName,
         Password = Constants.Password
     };
     _messageRouter = new MessageRouter(_factory);
     _worker        = new Worker(_factory, _messageRouter);
 }
示例#2
0
 public Worker(ConnectionFactory factory, MessageRouter messageRouter)
 {
     _factory       = factory;
     _messageRouter = messageRouter;
 }