Example #1
0
 public NewsletterService(IConfiguration config, ILogger <NewsletterService> logger, ISQLHelperService sqlHelper, IHttpContextAccessor httpContextAccessor)
 {
     dbConnectionString   = config["ConnectionStrings:DefaultConnection"];
     _logger              = logger;
     _httpContextAccessor = httpContextAccessor;
     _sql = sqlHelper;
 }
Example #2
0
 public ArticleImageService(
     IConfiguration configuration
     , IAzureStorageService azureStorageService
     , ILogger <ArticleImageService> logger
     , ISQLHelperService sql
     , IWebHostEnvironment env)
 {
     _configuration        = configuration;
     AzureConncetionString = _configuration["AzureStorageConnectionString"];
     _azureStorageService  = azureStorageService;
     _logger  = logger;
     _sql     = sql;
     _wwwRoot = env.ContentRootPath;
 }
Example #3
0
 public AlertService(ILogger <AlertService> logger, ISQLHelperService sql)
 {
     _logger = logger;
     _sql    = sql;
 }
Example #4
0
 public EventService(ILogger <EventService> logger, ISQLHelperService sql)
 {
     _logger = logger;
     _sql    = sql;
 }