public MailTemplateService( IEnvironmentConfig EnvironmentConfig, IMailTemplateRepository MailTemplateRepository) { _IEnvironmentConfig = EnvironmentConfig; _IMailTemplateRepository = MailTemplateRepository; }
public DocMenuReportService( IEnvironmentConfig EnvironmentConfig, IDocMenuReportRepository DocMenuReportRepository) { _IEnvironmentConfig = EnvironmentConfig; _IDocMenReportRepository = DocMenuReportRepository; }
public DocMenuHomeService( IEnvironmentConfig EnvironmentConfig, IDocMenuHomeRepository DocMenuHomeRepository) { _IEnvironmentConfig = EnvironmentConfig; _IDocMenuHomeRepository = DocMenuHomeRepository; }
public AccountController(IConsultantContext consultantContext, IConsultantDataServiceClientFactory consultantServiceFactory, IConfigService configService, IEnvironmentConfig environmentConfig, IAppSettings appSettings) { _consultantContext = consultantContext; _consultantServiceFactory = consultantServiceFactory; _configService = configService; _environmentConfig = environmentConfig; _appSettings = appSettings; }
private void GetConfig(XPathNavigator nav) { _application = new ApplicationConfig(GetChild(nav, "application"), null); _constants = new ConstantsConfig(GetChild(nav, "constants"), null); _encryption = new EncryptionConfig(GetChild(nav, "encryption"), null); _email = new EmailConfig(GetChild(nav, "email"), null); _user = new UserConfig(GetChild(nav, "user"), null); _environment = new EnvironmentConfig(GetChild(nav, "environment"), null); }
public AzureEmotionService(IAnomalyDetectionProvider anomalyService, IFrameRepository framesStorage, IEmotionRespository emotionStorage, IEnvironmentConfig config) { _client = new Microsoft.ProjectOxford.Emotion.EmotionServiceClient(_config.CognitiveSubscriptionKey); _anomalyService = anomalyService; _framesStorage = framesStorage; _emotionStorage = emotionStorage; _config = config; }
public PrivateDocMenuHomeController( IDocMenuHomeService IDocMenuHomeService, IHttpContextAccessor httpContextAccessor, IEnvironmentConfig EnvironmentConfig) { _IDocMenuHomeService = IDocMenuHomeService; _httpContextAccessor = httpContextAccessor; _EnvironmentConfig = EnvironmentConfig; }
public DocMenuDService( IEnvironmentConfig EnvironmentConfig, IDocMenuD1Repository DocMenuD1Repository, IDocMenuD2Repository DocMenuD2Repository) { _IEnvironmentConfig = EnvironmentConfig; _IDocMenuD1Repository = DocMenuD1Repository; _IDocMenuD2Repository = DocMenuD2Repository; }
public PrivateSystemController( ISystemService ISystemService, IHttpContextAccessor httpContextAccessor, IEnvironmentConfig EnvironmentConfig) { _ISystemService = ISystemService; _httpContextAccessor = httpContextAccessor; _EnvironmentConfig = EnvironmentConfig; }
public PrivateDocMenuBController( IDocMenuBService IDocMenuBService, IHttpContextAccessor httpContextAccessor, IEnvironmentConfig EnvironmentConfig, IMailTemplateService MailTemplateService) { _IDocMenuBService = IDocMenuBService; _httpContextAccessor = httpContextAccessor; _EnvironmentConfig = EnvironmentConfig; _IMailTemplateService = MailTemplateService; }
public PrivateRegisterController( IRegisterUserService IRegisterUserService, IHttpContextAccessor httpContextAccessor, IEnvironmentConfig EnvironmentConfig, IEmailHelper EmailHelper) { _IRegisterUserService = IRegisterUserService; _httpContextAccessor = httpContextAccessor; _EnvironmentConfig = EnvironmentConfig; _EmailHelper = EmailHelper; }
public EnvironmentConfig(XPathNavigator nav, IEnvironmentConfig template) { _template = template; if (_template != null) { _baseUrl = _template.BaseUrl; _environment = template.Environment; } _nav = nav; }
public DocMenuA3Repository( IConfiguration configuration, IEnvironmentConfig EnvironmentConfig, IDropdownListRepository DropdownListRepository, IDocMenuReportRepository DocMenuReportRepository, IRegisterUserRepository IRegisterUserRepository) { _configuration = configuration; _IEnvironmentConfig = EnvironmentConfig; ConnectionString = Encoding.UTF8.GetString(Convert.FromBase64String(_configuration.GetConnectionString("SqlConnection"))); _IDropdownListRepository = DropdownListRepository; _IRegisterUserRepository = IRegisterUserRepository; _IDocMenuReportRepository = DocMenuReportRepository; }
public InvoicingService( IConsultantContext consultantContext, IQuartetClientFactory clientFactory, IAppSettings appSettings, IEnvironmentConfig environmentConfig, ISubsidiaryAccessor subsidiaryAccessor ) : base(appSettings, environmentConfig, subsidiaryAccessor) { _quartetClientFactory = clientFactory; _consultantContext = consultantContext; _appSettings = appSettings; _numberFormatCulture = CultureInfo.CreateSpecificCulture(_appSettings.GetValue("Order_InvoiceReceipt_NumberFormatCulture")); }
public DocMenuCService( IEnvironmentConfig EnvironmentConfig, IDocMenuC1Repository DocMenuC1Repository, IDocMenuC2Repository DocMenuC2Repository, IDocMenuC3Repository DocMenuC3Repository, IDocMenuC34HistoryRepository IDocMenuC34HistoryRepository, IDocMeetingRoundRepository DocMeetingRoundRepository) { _IEnvironmentConfig = EnvironmentConfig; _IDocMenuC1Repository = DocMenuC1Repository; _IDocMenuC2Repository = DocMenuC2Repository; _IDocMenuC3Repository = DocMenuC3Repository; _IDocMenuC34HistoryRepository = IDocMenuC34HistoryRepository; _IDocMeetingRoundRepository = DocMeetingRoundRepository; }
public CustomerExportService( IConsultantContext consultantContext, IQuartetClientFactory clientFactory, IAppSettings appSettings, IConfigService configService, IEnvironmentConfig environmentConfig, ISubsidiaryAccessor subsidiaryAccessor ) : base(appSettings, environmentConfig, subsidiaryAccessor) { _clientFactory = clientFactory; _consultantContext = consultantContext; _appSettings = appSettings; _configService = configService; }
public ElasticEmotionRespository(IEnvironmentConfig config) { _config = config; var node = new Uri(config.ElasticUri); _settings = new ConnectionSettings(node); _settings.GlobalHeaders(new NameValueCollection { { "Authorization", config.ESAuthToken } }); _settings.DefaultIndex("atmo-emotions"); _settings.RequestTimeout(TimeSpan.FromSeconds(2)); _settings.ThrowExceptions(true); _client = new ElasticClient(_settings); }
public DocMenuAService( IEnvironmentConfig EnvironmentConfig, IDocMenuA1Repository DocMenuA1Repository, IDocMenuA2Repository DocMenuA2Repository, IDocMenuA3Repository DocMenuA3Repository, IDocMenuA4Repository DocMenuA4Repository, IDocMenuA5Repository DocMenuA5Repository, IDocMenuA6Repository DocMenuA6Repository, IDocMenuA7Repository DocMenuA7Repository) { _IEnvironmentConfig = EnvironmentConfig; _IDocMenuA1Repository = DocMenuA1Repository; _IDocMenuA2Repository = DocMenuA2Repository; _IDocMenuA3Repository = DocMenuA3Repository; _IDocMenuA4Repository = DocMenuA4Repository; _IDocMenuA5Repository = DocMenuA5Repository; _IDocMenuA6Repository = DocMenuA6Repository; _IDocMenuA7Repository = DocMenuA7Repository; }
public FramesBlobStorage(IEnvironmentConfig config) { _config = config; // Parse the connection string and return a reference to the storage account. CloudStorageAccount storageAccount = CloudStorageAccount.Parse(_config.StorageConnectionString); // Create the blob client. _blobClient = storageAccount.CreateCloudBlobClient(); // Retrieve a reference to a container. _container = _blobClient.GetContainerReference($"atmo-{DateTime.Now.ToString("MM-dd")}"); // Create the container if it doesn't already exist. var exists = _container.CreateIfNotExistsAsync().Result; if (!exists) { _container.SetPermissionsAsync(new BlobContainerPermissions { PublicAccess = BlobContainerPublicAccessType.Blob }); } }
public ExportServiceBase(IAppSettings appSettings, IEnvironmentConfig environmentConfig, ISubsidiaryAccessor subsidiaryAccessor) { _appSettings = appSettings; _environmentConfig = environmentConfig; _subsidiaryAccessor = subsidiaryAccessor; }
public ConsultantDataServiceClientFactory(IEnvironmentConfig environmentConfig) { _clientKey = ConfigurationManager.AppSettings["ClientKey"]; _environmentConfig = environmentConfig; }