/// <summary> /// Initializes a new instance of the <see cref="HyperValidatorSettings"/> class. /// </summary> /// <param name="appSettingsReader">The application settings reader.</param> /// <param name="configurationManager">The configuration manager.</param> /// <param name="fileUtility">The file utility.</param> public HyperValidatorSettings( IAppSettingsReader appSettingsReader, IConfigurationManager configurationManager, IFileUtility fileUtility) : base(appSettingsReader, configurationManager, fileUtility) { }
/// <summary> /// Initializes a new instance of the <see cref="BaseConfiguration" /> class. /// </summary> /// <param name="appSettingsReader">The application settings reader.</param> /// <param name="configurationManager">The configuration manager.</param> /// <param name="fileUtility">The file utility.</param> protected BaseConfiguration( IAppSettingsReader appSettingsReader, IConfigurationManager configurationManager, IFileUtility fileUtility) { AppSettingsReader = appSettingsReader; ConfigurationManager = configurationManager; FileUtility = fileUtility; }
public LanguageDecision( IAppSettingsReader appSettingsReader, ILanguageParameterParser languageParameterParser, IConsole console) { AppSettingsReader = appSettingsReader; LanguageParameterParser = languageParameterParser; Console = console; }
public LegacyAuthTokenConverter( ICache tokenCache, IHttpClient httpClient, IObjectSerializer serializer, IAppSettingsReader appSettingsReader) { _tokenCache = tokenCache; _httpClient = httpClient; _serializer = serializer; _identityUrl = appSettingsReader.GetValue <string>("Identity.Url").TrimEnd('/'); }
private static ILogLayout CreateLogLayout(IAppSettingsReader settingsReader) { var version = typeof(GuestServiceBootstrapper).Assembly.GetName().Version.ToString(); var logLayout = new LogLayoutBuilder().Use <LogLayoutMetadata>().BuildGlobalLayout(); var localIpHostEntry = Dns.GetHostEntry(Dns.GetHostName()); var messageContent = logLayout.Get <LogLayoutMetadata>(); messageContent.LocalIP = localIpHostEntry.AddressList.FirstOrDefault(i => i.AddressFamily == AddressFamily.InterNetwork)?.ToString() ?? string.Empty; messageContent.ApplicationName = ServiceName; messageContent.Environment = settingsReader.GetValue <string>("Environment"); messageContent.Facility = settingsReader.GetValue <string>("Guest.Facility"); messageContent.Host = Environment.MachineName; messageContent.RemoteIP = string.Empty; messageContent.Version = version; logLayout.Update(messageContent); return(logLayout); }
private async void MainForm_Load(object sender, EventArgs e) { lblStatus.Text = "Загрузка настроек. Ожидайте"; Export = new ExportExcel(); this.AppSettingsReader = new Models.AppSettingsReader(); AppSettings = await AppSettingsReader.ExecuteAsync(); cbServers.DataSource = AppSettings.ServersDataSource; cbServers.DisplayMember = "Name"; cbServers.ValueMember = "SysName"; cbServers.Enabled = true; //cbServers.Invoke(new Action(() => //{ // cbServers.DataSource = serversDataSource; // cbServers.DisplayMember = "Name"; // cbServers.ValueMember = "SysName"; // cbServers.Enabled = true; //})); lblStatus.Text = "Настройки загружены"; }
public AppSettingsRenewalParamsReader(IAppSettingsReader appSettings) { m_appSettings = appSettings; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultDataConfiguration" /> class. /// </summary> /// <param name="settingsReader">The settings reader.</param> public DefaultDataConfiguration(IAppSettingsReader settingsReader) { _settingsReader = settingsReader; }
public CloudShim(IMicroserviceHttpClientResolver microserviceHttpClientResolver, IAppSettingsReader appSettingsReader) { _microserviceHttpClientResolver = microserviceHttpClientResolver; _serviceUrl = appSettingsReader.GetValue <string>("SynthesisCloud.Url"); }
/// <summary> /// Initializes a new instance of the <see cref="DefaultDataConfiguration" /> class. /// </summary> /// <param name="settingsReader">The settings reader.</param> public DefaultDataConfiguration(IAppSettingsReader settingsReader) { _settingsReader = settingsReader; }
public SettingsApiWrapper(IMicroserviceHttpClientResolver microserviceHttpClientResolver, IAppSettingsReader appSettingsReader) : base(microserviceHttpClientResolver, appSettingsReader, "SynthesisCloud.Url") { }
/// <summary> /// Initializes a new instance of the <see cref="DefaultConfiguration" /> class. /// </summary> /// <param name="settingsReader">The settings reader.</param> /// <param name="configurationManager">The configuration manager.</param> public DefaultConfiguration(IAppSettingsReader settingsReader, IConfigurationManager configurationManager) { SettingsReader = settingsReader; ConfigurationManager = configurationManager; }
public EmailSendingService(IEmailApi emailApi, IAppSettingsReader appSettingsReader) { _emailApi = emailApi; _appSettingsReader = appSettingsReader; }
private AppContext() { _appSettingsReader = new AppSettingsReader(); _accountReader = new AccountReader(); }
/// <summary> /// Initializes a new instance of the <see cref="DefaultConfiguration" /> class. /// </summary> /// <param name="settingsReader">The settings reader.</param> /// <param name="configurationManager">The configuration manager.</param> public DefaultConfiguration(IAppSettingsReader settingsReader, IConfigurationManager configurationManager) { SettingsReader = settingsReader; ConfigurationManager = configurationManager; }
public DataModule(IAppSettingsReader appSettingsReader) { _appSettingsReader = appSettingsReader ?? throw new ArgumentNullException(nameof(appSettingsReader)); }
public LicenseApi(ILoggerFactory loggerFactory, IHttpClient httpClient, IAppSettingsReader appSettingsReader) : base(httpClient) { LoggingService = loggerFactory.GetLogger(this); ApiBaseUrl = appSettingsReader.SafeGetValue <string>("License.Url"); }
public ImpersonateTenantMiddleware(RequestDelegate next, IPolicyEvaluator policyEvaluator, IHttpClient httpClient, IAppSettingsReader appSettingsReader) { _policyEvaluator = policyEvaluator; _httpClient = httpClient; _tenantUrl = appSettingsReader.GetValue <string>("Tenant.Url").TrimEnd('/'); _next = next; }