コード例 #1
0
 public DefaultChannelPublisher(IOptionsMonitor <PubSubDefinition> definitions, IContainerResolve serviceProvider, ILogger <DefaultChannelPublisher> logger, IApplicationContext applicationContext, IActivitySourceFactory activitySourceFactory)
 {
     _definitions        = definitions;
     _serviceProvider    = serviceProvider;
     _logger             = logger;
     _applicationContext = applicationContext;
     _activitySource     = activitySourceFactory?.GetArc4u();
 }
コード例 #2
0
 public MessagesScope(MessagesToPublish messagesToPublish, ILogger <MessagesScope> logger, IQueueMessageSender queueMessageSender, IPublisher publisher, IActivitySourceFactory activitySourceFactory)
 {
     _messagesToPublish  = messagesToPublish;
     _logger             = logger;
     _queueMessageSender = queueMessageSender;
     _publisher          = publisher;
     _activitySource     = activitySourceFactory.GetArc4u();
 }
コード例 #3
0
 public DefaultQueueMessageSender(IOptionsMonitor <QueueDefinition> definitions,
                                  IContainerResolve serviceProvider,
                                  IQueueStreamManager queueStreamManager,
                                  IApplicationContext applicationContext,
                                  ILogger <DefaultQueueMessageSender> logger,
                                  IActivitySourceFactory activitySourceFactory)
 {
     _definitions        = definitions;
     _serviceProvider    = serviceProvider;
     _logger             = logger;
     _applicationContext = applicationContext;
     _queueStreamManager = queueStreamManager;
     _activitySource     = activitySourceFactory.GetArc4u();
 }