コード例 #1
0
        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));
        }
コード例 #2
0
 protected virtual string GetRoutingKey(Type type)
 {
     return(_conventions.RoutingKeyConvention(type));
 }
コード例 #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))));
 }