public SendRequestNotificationMiddleWare(RequestDelegate next, IMessageService messageService, IConfiguration configuration, IOptions <InfestationConfiguration> options) { this._next = next; this._messageServices = messageService; this._configuration = configuration; this._options = options.Value; }
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; }
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; }
public LoadFileService(IMemoryCache cache, IOptions <InfestationConfiguration> options, IServiceScopeFactory scopeFactory) { _cache = cache; _scopeFactory = scopeFactory; _options = options.Value; }