Beispiel #1
0
 public SendRequestNotificationMiddleWare(RequestDelegate next, IMessageService messageService, IConfiguration configuration, IOptions <InfestationConfiguration> options)
 {
     this._next            = next;
     this._messageServices = messageService;
     this._configuration   = configuration;
     this._options         = options.Value;
 }
Beispiel #2
0
 public LoadFileServicecs(IMemoryCache cache, /*IExampleRestClient restClient,*/ IOptions <InfestationConfiguration> options, IServiceProvider scopeFactory, IHelper helper)
 {
     _scopeFactory = scopeFactory;
     _cache        = cache;
     //_restClient = _scopeFactory.GetService<IExampleRestClient>();
     _helper = helper;
     _infestationConfiguration = options.Value;
 }
Beispiel #3
0
        public MessageService(IConfiguration configuration, IOptions <InfestationConfiguration> options)
        {
            _configuration = configuration;

            _infestationConfiguration = options.Value;
        }
 public WriteToConsoleMiddleware(RequestDelegate next, IOptions <InfestationConfiguration> options)
 {
     _next = next;
     _infestationConfiguration = options.Value;
 }
 public EmailMessageSender(IOptions <InfestationConfiguration> options)
 {
     _configuration = options.Value;
 }
Beispiel #6
0
 public LoadFileService(IMemoryCache cache, IOptions <InfestationConfiguration> options, IServiceScopeFactory scopeFactory)
 {
     _cache        = cache;
     _scopeFactory = scopeFactory;
     _options      = options.Value;
 }