public OutboxEventHostedService(
     ILogger <OutboxEventHostedService> logger,
     IEventBusPublisher eventBusPublisher,
     IServiceScopeFactory serviceScopeFactory)
 {
     _logger              = logger;
     _eventBusPublisher   = eventBusPublisher;
     _serviceScopeFactory = serviceScopeFactory;
 }
Exemplo n.º 2
0
        public SampleEventPublisher(IEventBusPublisher eventBusPublisher)
        {
            if (eventBusPublisher == null)
            {
                throw new ArgumentNullException(nameof(eventBusPublisher));
            }

            _eventBusPublisher = eventBusPublisher;
        }
Exemplo n.º 3
0
        public EdcPublishService(
            IEventBusPublisher eventBusPublisher,
            IIntegrationEventLogService eventLogService)
        {
            Ensure.That(eventBusPublisher).IsNotNull();
            Ensure.That(eventLogService).IsNotNull();

            _eventBusPublisher = eventBusPublisher;
            _eventLogService   = eventLogService;
        }
 public CheckOutEventHandler(IEventBusPublisher eventBusPublisher,
                             CreateOrderCommandHandler orderCommandHandler,
                             ILogger <CheckOutEventHandler> logger,
                             TelemetryClient telemetryClient)
 {
     _eventBusPublisher   = eventBusPublisher;
     _orderCommandHandler = orderCommandHandler;
     _logger          = logger;
     _telemetryClient = telemetryClient;
 }
Exemplo n.º 5
0
 public RabbitMQSubscriptionManager(
     IServiceProvider serviceProvider,
     IEventBusPublisher eventBusPublisher,
     MessageWriterProvider messageWriterProvider
     )
 {
     this.serviceProvider       = serviceProvider;
     this.eventBusPublisher     = eventBusPublisher;
     this.messageWriterProvider = messageWriterProvider;
 }
 public ProductCreatedHandler(
     IServiceScopeFactory serviceScopeFactory,
     IEventBusPublisher eventBusPublisher,
     IMapper mapper,
     ILogger <ProductCreatedHandler> logger)
 {
     _serviceScopeFactory = serviceScopeFactory;
     _mapper = mapper;
     _logger = logger;
 }
Exemplo n.º 7
0
 public RabbitMQEventBus(
     ISubscriptionManager <RabbitContext> subscriptionManager,
     IEventBusListener <RabbitContext> eventBusListener,
     IEventBusPublisher eventBusPublisher
     )
 {
     this.subscriptionManager = subscriptionManager;
     this.eventBusListener    = eventBusListener;
     this.eventBusPublisher   = eventBusPublisher;
 }
Exemplo n.º 8
0
 public CreateCarCommandHandler(
     IMapper mapper,
     IValidatorFactory validatorFactory,
     IEventBusPublisher eventBusPublisher,
     ICommandCarCatalogRepository commandCarCatalogRepository)
 {
     _mapper                      = mapper;
     _validatorFactory            = validatorFactory;
     _commandCarCatalogRepository = commandCarCatalogRepository;
     _eventBusPublisher           = eventBusPublisher;
 }
Exemplo n.º 9
0
 public ProductsController(
     ProductContext context,
     IEventBusPublisher eventBusPublisher,
     IHttpClientFactory httpClientFactory,
     IMapper mapper)
 {
     _context           = context;
     _eventBusPublisher = eventBusPublisher;
     _httpClientFactory = httpClientFactory;
     _mapper            = mapper;
 }
 public CatalogBusinessServices(IMusicRepository musicRepository,
                                IGenreRepository genreRepository,
                                IArtistRepository artistRepository,
                                IEventBusPublisher eventBusPublisher,
                                ILogger <CatalogBusinessServices> logger)
 {
     _musicRepository   = musicRepository;
     _genreRepository   = genreRepository;
     _artistRepository  = artistRepository;
     _eventBusPublisher = eventBusPublisher;
     _logger            = logger;
 }
Exemplo n.º 11
0
 public BasketBusinessServices(IDistributedCacheRepository distributedCacheRepository,
                               IAzureTableStorageRespository <ProductTableEntity> productRepository,
                               ILogger <BasketBusinessServices> logger,
                               IEventBusPublisher eventBusPublisher,
                               IEventBusSubscriber eventBusSubscriber,
                               IRestClient restClient,
                               TelemetryClient telemetryClient)
 {
     _distributedCacheRepository = distributedCacheRepository;
     _productRepository          = productRepository;
     _logger             = logger;
     _eventBusPublisher  = eventBusPublisher;
     _eventBusSubscriber = eventBusSubscriber;
     _restClient         = restClient;
     _telemetryClient    = telemetryClient;
 }
Exemplo n.º 12
0
 public ThingCommandService(
     IThingRepository thingRepository,
     IThingMappingService thingMappingService,
     IUserRepository userRepository,
     IHttpContextUserService httpContextUserService,
     IEventBusPublisher eventBusPublisher,
     IUnitOfWork unitOfWork,
     ILogger <ThingQueryService> logger)
 {
     _thingRepository        = thingRepository;
     _thingMappingService    = thingMappingService;
     _userRepository         = userRepository;
     _httpContextUserService = httpContextUserService;
     _eventBusPublisher      = eventBusPublisher;
     _unitOfWork             = unitOfWork;
     _logger = logger;
 }
Exemplo n.º 13
0
 public AccountController(
     SignInManager <AppUser> signInManager,
     UserManager <AppUser> userManager,
     IIdentityServerInteractionService interaction,
     IAuthenticationSchemeProvider schemeProvider,
     IClientStore clientStore,
     IEventService events,
     IEventBusPublisher eventBusPublisher)
 {
     _userManager       = userManager;
     _interaction       = interaction;
     _schemeProvider    = schemeProvider;
     _clientStore       = clientStore;
     _events            = events;
     _eventBusPublisher = eventBusPublisher;
     _signInManager     = signInManager;
 }
Exemplo n.º 14
0
 public PlaceCommandService(
     IPlaceRepository placeRepository,
     IPlaceMappingService placeMappingService,
     IUserRepository userRepository,
     IHttpContextUserService httpContextUserService,
     IEventBusPublisher eventBusPublisher,
     IUnitOfWork unitOfWork,
     ILogger <PlaceQueryService> logger)
 {
     _placeRepository        = placeRepository;
     _placeMappingService    = placeMappingService;
     _userRepository         = userRepository;
     _httpContextUserService = httpContextUserService;
     _eventBusPublisher      = eventBusPublisher;
     _unitOfWork             = unitOfWork;
     _logger = logger;
 }
Exemplo n.º 15
0
        public EventPublisher(IEventBusPublisher eventBusPublisher, IEventModelFactory eventModelFactory, IDbContextFactory dbContextFactory)
        {
            if (eventBusPublisher == null)
            {
                throw new ArgumentNullException(nameof(eventBusPublisher));
            }
            if (eventModelFactory == null)
            {
                throw new ArgumentNullException(nameof(eventModelFactory));
            }
            if (dbContextFactory == null)
            {
                throw new ArgumentNullException(nameof(dbContextFactory));
            }

            _eventBusPublisher = eventBusPublisher;
            _eventModelFactory = eventModelFactory;
            _dbContextFactory  = dbContextFactory;
        }
 public EventBusTestController(IEventBusPublisher publisher)
 {
     this.publisher = publisher;
 }
Exemplo n.º 17
0
 /// <summary>
 /// Initialize the object
 /// </summary>
 /// <param name="eventBus">The publisher to send a IntegrationEvent.</param>
 /// <param name="mediator">The mediator to send a Command</param>
 public DomainEventHandler(IEventBusPublisher eventBus, IMediator mediator)
 {
     _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus));
     _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator));
 }
Exemplo n.º 18
0
 public NotificationService(IEventBusPublisher eventBusPublisher)
 {
     _eventBusPublisher = eventBusPublisher;
 }
Exemplo n.º 19
0
        public RegisterController(AppUserStore userStore, IEventBusPublisher eventBusPublisher)
        {
            _userStore = userStore;

            _eventBusPublisher = eventBusPublisher;
        }