示例#1
0
 public JsonAmqpRpcServer(string hostName, string queueName, IJsonRpcHandler handler)
 {
     _log = LogManager.GetCurrentClassLogger();
     _log.Info("AMQP RPC server starting: host = {0}; queue = {1}", hostName, queueName);
     _messaging = AmqpRpc.CreateMessaging(AmqpRpc.CreateConnector(hostName), queueName);
     _handler   = handler;
 }