public CompPlatformAuthenticationEvents(ILog log, IHostingEnvironment hostingEnvironment, string connString, string emailsQueueConnString) { _mailSentRepository = new RegisterMailSentRepository(new AzureTableStorage <RegisterMailSentEntity>(connString, "RegisterMailSent", log)); if (hostingEnvironment.IsProduction() && !string.IsNullOrEmpty(emailsQueueConnString)) { _emailsQueue = new AzureQueueExt(emailsQueueConnString, "emailsqueue"); } else { _emailsQueue = new QueueExtInMemory(); } }
public CompPlatformAuthenticationEvents(ILog log, IHostingEnvironment hostingEnvironment, IReloadingManager <string> connString) { _mailSentRepository = new RegisterMailSentRepository(AzureTableStorage <RegisterMailSentEntity> .Create(connString, "RegisterMailSent", log)); _log = log; }