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)); }
public IConventions Get <T>() where T : class { return(new Conventions(typeof(T), _conventions.RoutingKeyConvention(typeof(T)), _conventions.ExchangeNamingConvention(typeof(T)), _conventions.QueueNamingConvention(typeof(T)))); }