Beispiel #1
0
 public EventsPublisher(EventsPublisherSettings settings,
                        IBusControl busControl,
                        IEventDeserializer eventDeserializer,
                        IServiceProvider serviceProvider)
 {
     _settings          = settings;
     _busControl        = busControl;
     _eventDeserializer = eventDeserializer;
     _serviceProvider   = serviceProvider;
 }
 public EventsPublisherBuilder WithSettings(EventsPublisherSettings settings)
 {
     _serviceCollection.AddTransient <EventsPublisherSettings>(provider => settings);
     return(this);
 }