コード例 #1
0
        public RequestConfiguration Create(string requestExchange, string requestRoutingKey, string responseQueue, string responseExchange, string responseRoutingKey)
        {
            var cfg = new RequestConfiguration
            {
                Request  = _publisher.Create(requestExchange, requestRoutingKey),
                Response = _consumer.Create(responseQueue, responseExchange, responseRoutingKey)
            };

            cfg.ToDirectRpc();
            return(cfg);
        }
コード例 #2
0
        public RequestConfiguration Create(Type requestType, Type responseType)
        {
            var cfg = new RequestConfiguration
            {
                Request  = _publisher.Create(requestType),
                Response = _consumer.Create(responseType)
            };

            cfg.ToDirectRpc();
            return(cfg);
        }