Esempio n. 1
0
 public IntegrationEventLogService(
     ApplicationContext dbContext,
     IIntegrationEventLogRepository repository)
 {
     this.dbContext  = dbContext;
     this.repository = repository;
 }
Esempio n. 2
0
        public RequeueAtStartup(IConfiguration configuration
                                , IIntegrationEventLogRepository integrationEventLogRepository

                                )
        {
            _taskConfig = configuration.GetSection("Task_RequeueAtStartup").Get <BackgroundTaskConfiguration>();
            _integrationEventLogRepository = integrationEventLogRepository;
        }
Esempio n. 3
0
 public EventPublisher(IConfiguration configuration
                       , IIntegrationEventLogRepository integrationEventLogRepository
                       , IServiceBusEndpoint nServiceBusEndpoint)
 {
     _taskConfig = configuration.GetSection("Task_EventPublisher").Get <BackgroundTaskConfiguration>();
     _integrationEventLogRepository = integrationEventLogRepository;
     _endpoint = nServiceBusEndpoint;
 }
Esempio n. 4
0
 /// <summary>
 /// IntegrationEventLogsController constructor
 /// </summary>
 /// <param name="repository"></param>
 /// <param name="membershipManager"></param>
 /// <param name="userManager"></param>
 /// <param name="configuration"></param>
 /// <param name="httpContextAccessor"></param>
 public IntegrationEventLogsController(
     IIntegrationEventLogRepository repository,
     IMembershipManager membershipManager,
     ApplicationIdentityUserManager userManager,
     IConfiguration configuration,
     IHttpContextAccessor httpContextAccessor) : base(repository, userManager, httpContextAccessor, membershipManager, configuration)
 {
     this.repository = repository;
 }
Esempio n. 5
0
 public WebhookPublisher(
     IIntegrationEventRepository eventRepository,
     IIntegrationEventLogRepository eventLogRepository,
     IIntegrationEventSubscriptionRepository eventSubscriptionRepository,
     IIntegrationEventSubscriptionAttemptRepository integrationEventSubscriptionAttemptRepository,
     IBackgroundJobClient backgroundJobClient,
     IQueueItemRepository queueItemRepository,
     IHubContext <NotificationHub> hub)
 {
     _eventRepository             = eventRepository;
     _eventLogRepository          = eventLogRepository;
     _eventSubscriptionRepository = eventSubscriptionRepository;
     _backgroundJobClient         = backgroundJobClient;
     _queueItemRepository         = queueItemRepository;
     _attemptRepository           = integrationEventSubscriptionAttemptRepository;
     _hub = hub;
 }
Esempio n. 6
0
        public IntegrationEventService(string appName,
                                       IEventBus bus,
                                       DbContext context,
                                       ILogger <IntegrationEventService> logger,
                                       Func <DbConnection, IIntegrationEventLogRepository> integrationEventLogRepositoryFactory)
        {
            if (integrationEventLogRepositoryFactory == null)
            {
                throw new ArgumentNullException(nameof(integrationEventLogRepositoryFactory));
            }

            _appName = appName;
            _bus     = bus ?? throw new ArgumentNullException(nameof(bus));
            _context = context ?? throw new ArgumentNullException(nameof(context));
            _logger  = logger ?? throw new ArgumentNullException(nameof(logger));

            _integrationEventLogRepository = integrationEventLogRepositoryFactory(context.Database.GetDbConnection());
        }
 public IntegrationEventLogService(IIntegrationEventLogRepository repository)
 {
     this.repository = repository;
 }