public ConsumerConfiguration Create(Type messageType)
        {
            var queueName    = _conventions.QueueNamingConvention(messageType);
            var exchangeName = _conventions.ExchangeNamingConvention(messageType);
            var routingKey   = _conventions.RoutingKeyConvention(messageType);

            return(Create(queueName, exchangeName, routingKey));
        }
 protected virtual string GetRoutingKey(Type type)
 {
     return(_conventions.RoutingKeyConvention(type));
 }
Exemplo n.º 3
0
 public IConventions Get <T>() where T : class
 {
     return(new Conventions(typeof(T), _conventions.RoutingKeyConvention(typeof(T)),
                            _conventions.ExchangeNamingConvention(typeof(T)), _conventions.QueueNamingConvention(typeof(T))));
 }