public ConsumerConfigurationFactory(IQueueConfigurationFactory queue, IExchangeDeclarationFactory exchange, IConsumeConfigurationFactory consume, INamingConventions conventions)
 {
     _queue       = queue;
     _exchange    = exchange;
     _consume     = consume;
     _conventions = conventions;
 }
 public PublisherConfigurationFactory(IExchangeDeclarationFactory exchange, IBasicPublishConfigurationFactory basicPublish)
 {
     _exchange     = exchange;
     _basicPublish = basicPublish;
 }
Exemplo n.º 3
0
 public ExchangeDeclarationMiddleware(IExchangeDeclarationFactory cfgFactory, ExchangeDeclarationOptions options = null)
 {
     CfgFactory = cfgFactory;
     ExchangeDeclarationFunc = options?.ExchangeDeclarationFunc ?? (ctx => ctx.GetExchangeDeclaration());
     SaveToContextAction     = options?.SaveToContextAction ?? ((ctx, d) => ctx.Properties.TryAdd(PipeKey.ExchangeDeclaration, d));
 }