Ejemplo n.º 1
0
 public TopicClient(IOptions <RabbitConfig> rabbitConfig)
 {
     _rabbitConfig = rabbitConfig.Value;
 }
 public QueueClient(IOptions <RabbitConfig> rabbitConfig)
 {
     _rabbitConfig = rabbitConfig.Value;
 }
Ejemplo n.º 3
0
 public static ICoolBrainsServiceBuilder Listen(this ICoolBrainsServiceBuilder builder, Action <IRabbitMqReceiveEndpointConfigurator> queueConfiguration = null)
 {
     _rabbitConfig = builder.Services.BuildServiceProvider().GetService <IOptions <RabbitConfig> >().Value;
     _queueConfigurations.Add(_rabbitConfig.QueueName, queueConfiguration);
     return(builder);
 }