protected virtual PublisherConfiguration ExtractConfigFromStrings(IPipeContext context) { var routingKey = RoutingKeyFunc(context); var exchange = ExchangeFunc(context); return(PublisherFactory.Create(exchange, routingKey)); }
public RequestConfiguration Create(Type requestType, Type responseType) { var cfg = new RequestConfiguration { Request = _publisher.Create(requestType), Response = _consumer.Create(responseType) }; cfg.ToDirectRpc(); return(cfg); }