/// <summary>
 ///
 /// </summary>
 /// <param name="dbContext"></param>
 /// <param name="logContext"></param>
 public PublishedRtzMessageService(StmDbContext dbContext,
                                   LogDbContext logContext) : base(dbContext)
 {
     _aclService          = new ACLObjectService(dbContext);
     _subscriberService   = new VisSubscriptionService(dbContext);
     _logEventService     = new LogEventService(logContext);
     _notificationService = new NotificationService(dbContext, logContext);
 }
        public NaosOperationsLogEventsController(
            ILoggerFactory loggerFactory,
            ILogEventRepository repository,
            ILogEventService service,
            IFilterContextAccessor filterContext)
        {
            EnsureThat.EnsureArg.IsNotNull(loggerFactory, nameof(loggerFactory));
            EnsureThat.EnsureArg.IsNotNull(repository, nameof(repository));
            EnsureThat.EnsureArg.IsNotNull(service, nameof(service));

            this.logger        = loggerFactory.CreateLogger <NaosOperationsLogEventsController>();
            this.filterContext = filterContext.Context ?? new FilterContext();
            this.repository    = repository;
            this.service       = service;
        }
Пример #3
0
        public NaosOperationsHealthController(
            ILoggerFactory loggerFactory,
            IHttpClientFactory httpClientFactory,
            ILogEventService service,
            IFilterContextAccessor filterContext,
            ServiceDescriptor serviceDescriptor = null)
        {
            EnsureArg.IsNotNull(loggerFactory, nameof(loggerFactory));
            EnsureArg.IsNotNull(httpClientFactory, nameof(httpClientFactory));
            EnsureArg.IsNotNull(service, nameof(service));

            this.logger            = loggerFactory.CreateLogger <NaosOperationsHealthController>();
            this.filterContext     = filterContext.Context ?? new FilterContext();
            this.httpClientFactory = httpClientFactory;
            this.service           = service;
            this.serviceDescriptor = serviceDescriptor;
        }
Пример #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="dbContext"></param>
 /// <param name="notificationService"></param>
 /// <param name="logEventService"></param>
 public UploadedMessageService(StmDbContext dbContext,
                               INotificationService notificationService, ILogEventService logEventService) : base(dbContext)
 {
     _notificationService = notificationService;
     _logEventService     = logEventService;
 }