示例#1
0
        protected virtual PublisherConfiguration ExtractConfigFromStrings(IPipeContext context)
        {
            var routingKey = RoutingKeyFunc(context);
            var exchange   = ExchangeFunc(context);

            return(PublisherFactory.Create(exchange, routingKey));
        }
示例#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);
        }