Ejemplo n.º 1
0
        public IConvention Get(Type type)
        {
            if (_conventions.TryGetValue(type, out var convention))
            {
                return(convention);
            }

            convention = new Convention(type, _builder.GetRoutingKey(type), _builder.GetExchange(type), _builder.GetQueue(type));
            _conventions.TryAdd(type, convention);
            return(convention);
        }
Ejemplo n.º 2
0
        public IConvention Get(Type type)
        {
            if (_conventions.TryGetValue(type, out var convention))
            {
                return(convention);
            }

            convention = new Convention(type,
                                        _builder.GetRoutingKey(type),
                                        _builder.GetExchange(type),
                                        _builder.GetQueue(type),
                                        _builder.GetQueuePrefix(type),
                                        _builder.GetMultiThread(type),
                                        _builder.GetAutoAck(type),
                                        _builder.GetAckOnError(type));
            _conventions.TryAdd(type, convention);
            return(convention);
        }