public void UrlProviderReadsEnvVarConfiguredConfigFileAndParsesCorrectHttpUrl() { string tempFile = Path.GetTempFileName(); string tempDir = Path.GetDirectoryName(tempFile); string yarnConfigFile = Path.Combine(tempDir, YarnConfigFileName); using (new YarnConfigurationUrlProviderTests.TempFileWriter(yarnConfigFile, YarnConfigurationXmlContent)) using (new YarnConfigurationUrlProviderTests.TemporaryOverrideEnvironmentVariable(HadoopConfDirEnvVariable, tempDir)) { IUrlProvider urlProvider = GetYarnConfigurationUrlProvider(); var url = urlProvider.GetUrlAsync().GetAwaiter().GetResult(); int i = 0; foreach (var u in url) { i++; Assert.Equal("http", u.Scheme); if (i == 1) { Assert.Equal(AnyHttpAddressConfig.Split(':')[0], u.Host); Assert.Equal(AnyHttpAddressConfig.Split(':')[1], u.Port.ToString(CultureInfo.InvariantCulture)); } else { Assert.Equal(AnyHttpAddressConfigUpdated.Split(':')[0], u.Host); Assert.Equal(AnyHttpAddressConfigUpdated.Split(':')[1], u.Port.ToString(CultureInfo.InvariantCulture)); } } } }
public Wiki(IUrlProvider searchUrlProvider, IUrlProvider pageUrlProvider, IWebGet <string> webGet, WikiSearchConfig wikiSearchConfig) { this.searchUrlProvider = searchUrlProvider; this.pageUrlProvider = pageUrlProvider; this.webGet = webGet; this.wikiSearchConfig = wikiSearchConfig; }
public UserProfileController(IUserProfileOperations userProfileOper, IUrlProvider urlProvider, ICurrentUserProvider currentUserProvider) : base(currentUserProvider) { _urlProvider = urlProvider; _profileOperations = userProfileOper; }
public VerificationEventHandler(IAuthorizationService authorizationService, IUrlProvider urlProvider, IOptions <CommonCommandOptions> options) { _authorizationService = authorizationService; _urlProvider = urlProvider; _config = options.Value; }
/// <summary> /// constructs a worker instance with specified components /// </summary> /// <param name="provider">URL string provider</param> /// <param name="parser">URL scheme parser</param> /// <param name="writer">URL schemes writer</param> /// <param name="logger">bad URLs logger</param> public UrlWorker(IUrlProvider provider, IUrlParser <TScheme> parser, IUrlWriter <TScheme> writer, IUrlLogger logger) { this.provider = provider; this.parser = parser; this.writer = writer; this.logger = logger; }
public RecoveryTransitionHandler(IJwtComposer jwtComposer, StopFlowCommand stopFlowCommand, IUrlProvider urlProvider, SaveRecoveredAccountConnectionCommand saveRecoveredAccountConnectionCommand, ICookieService cookieService) : base(jwtComposer, stopFlowCommand, urlProvider) { _saveRecoveredAccountConnectionCommand = saveRecoveredAccountConnectionCommand; _cookieService = cookieService; }
public GetFido2SettingsCommand(ICacheItemRepository cacheItemRepository, IUrlProvider urlProvider, IOwnIdCoreConfiguration ownIdCoreConfiguration) { _cacheItemRepository = cacheItemRepository; _urlProvider = urlProvider; _ownIdCoreConfiguration = ownIdCoreConfiguration; }
public UpgradeToFido2TransitionHandler(IJwtComposer jwtComposer, StopFlowCommand stopFlowCommand, IUrlProvider urlProvider, ICookieService cookieService, Fido2UpgradeConnectionCommand fido2UpgradeConnectionCommand) : base(jwtComposer, stopFlowCommand, urlProvider, cookieService) { _fido2UpgradeConnectionCommand = fido2UpgradeConnectionCommand; }
public LinkBaseTransitionHandler(IJwtComposer jwtComposer, StopFlowCommand stopFlowCommand, IUrlProvider urlProvider, LinkAccountCommand linkAccountCommand, ICookieService cookieService) : base( jwtComposer, stopFlowCommand, urlProvider) { _linkAccountCommand = linkAccountCommand; _cookieService = cookieService; }
public LicenseFileProvider(ISecurityService security, IConfigurationService config, ILicenseContentBuilder contentBuilder, IUrlProvider urls, IService <SchemaFile, int> schemaFiles, IService <LicenseTemplate, int> licenseTemplates, IService <LicenseAgreement, int> agreements, IService <OrganizationLicense, int> licenses, IService <Application, int> applications, IService <Organization, int> organizations, IService <ConsumerProviderRegistration, int> consumerProviderRegistrations, IService <CustomLicense, int> customLicenses) { _security = security; _config = config; _licenseContentBuilder = contentBuilder; _urls = urls; _schemaFiles = schemaFiles; _licenseTemplates = licenseTemplates; _agreements = agreements; _licenses = licenses; _customLicenses = customLicenses; _applications = applications; _organisations = organizations; _consumerProviderRegistrations = consumerProviderRegistrations; }
public SoftwareSoftwareStatementService(IService <SoftwareStatement, int> service, IService <Application, int> applications, IService <OrganizationLicense, int> orgLicenses, IService <DataSchema, int> dataSchemas, IService <LicenseAgreement, int> licenseAgreements, ISecurityService security, INotificationService notifications, IService <ConsumerProviderRegistration, int> consumerRequests, IService <ConsumerRequest, int> requests, IService <ProviderEndpoint, int> endpoints, IService <SchemaFile, int> files, IUrlProvider urls, IService <ApplicationToken, int> appTokens ) { _security = security; _softwareStatements = service; _applications = applications; _organisationLicenses = orgLicenses; _dataSchemas = dataSchemas; _licenseAgreements = licenseAgreements; _applicationTokens = appTokens; _notificationService = notifications; _consumerRegistrationRequests = consumerRequests; _consumerRequests = requests; _providerEndpointService = endpoints; _schemaFiles = files; _urls = urls; _host = ConfigurationManager.AppSettings["DataLinkerHost"]; _linkToDownloadAgreement = ConfigurationManager.AppSettings["PathToDownloadAgreement"]; }
public LicenseVerificationService(ITokenService tokens, IService <OrganizationLicense, int> orgLicenses, IService <User, int> users, IService <Organization, int> organisations, IService <DataSchema, int> dataSchemas, IConfigurationService config, ILicenseContentBuilder licenseContent, IUrlProvider urls, IService <SchemaFile, int> schemaFiles, ISecurityService security, INotificationService notifications, IService <LicenseApprovalRequest, int> verificationRequests, IService <LicenseMatch, int> licenseMatches, IUserNotificationService userNotifications) { _tokens = tokens; _orgLicenses = orgLicenses; _verificationRequests = verificationRequests; _users = users; _organisations = organisations; _config = config; _licenseContent = licenseContent; _urls = urls; _schemaFiles = schemaFiles; _security = security; _dataSchemas = dataSchemas; _notifications = notifications; _licenseMatches = licenseMatches; _userNotifications = userNotifications; }
public MarkdownProcessor(IFileSystem fileSystem, ILogger logger, IUrlProvider urlProvider, GeneratorContext context) { this._log = logger; this._fileSystem = fileSystem; this._urlProvider = urlProvider; this._context = context; }
public FileManagerController(IFileManagerView downloaderView, IUrlProvider urlProvider, IDownloadFileManager downloadFileManager, IAppSettings appSettings) { _downloaderView = downloaderView; _urlProvider = urlProvider; _downloadFileManager = downloadFileManager; _appSettings = appSettings; }
public void EncodeUmlauteInQuery(string UmlautLocation, string ExpectedEncoding) { IUrlProvider ProviderUnderTest = CreateDefaultUrlProvider(); ProviderUnderTest.SetLocation(UmlautLocation); Assert.Contains(ExpectedEncoding, ProviderUnderTest.GetUriAsString()); }
internal void SetModeCorrespondingToQueryMode(string ExpectedMode, OpenWeatherUrlProvider.QueryMode ModeToSet) { IUrlProvider ProviderUnderTest = CreateDefaultUrlProvider(); ProviderUnderTest.SetMode(ModeToSet); Assert.Contains(ExpectedMode, ProviderUnderTest.GetUriAsString()); }
protected BaseTransitionHandler(IJwtComposer jwtComposer, StopFlowCommand stopFlowCommand, IUrlProvider urlProvider, bool validateSecurityTokens = true) { JwtComposer = jwtComposer; _stopFlowCommand = stopFlowCommand; _validateSecurityTokens = validateSecurityTokens; UrlProvider = urlProvider; }
public void AddQueryParamterForTown(string LocationToSet) { IUrlProvider ProviderUnderTest = CreateDefaultUrlProvider(); ProviderUnderTest.SetLocation(LocationToSet); Assert.Contains($"q={LocationToSet}", ProviderUnderTest.GetUriAsString()); }
internal void SetLanguageCorrectly(string SearchString, OpenWeatherUrlProvider.QueryLanguage LanguageToSet) { IUrlProvider ProviderUnderTest = CreateDefaultUrlProvider(); ProviderUnderTest.SetLanguage(LanguageToSet); Assert.Contains(SearchString, ProviderUnderTest.GetUriAsString()); }
public GetUrlController(IContentTypeProvider contentTypeProvider, IPrimaryKeyConverter primaryKeyConverter, IContentGetter contentGetter, IUrlProvider urlProvider, IContentRouteMatcher contentRouteMatcher) { ContentTypeProvider = contentTypeProvider; PrimaryKeyConverter = primaryKeyConverter; ContentGetter = contentGetter; UrlProvider = urlProvider; ContentRouteMatcher = contentRouteMatcher; }
public StaticProcessor(ILogger logger, IUrlProvider urlProvider, BeardConfig config, GeneratorContext context) { this._log = logger; this._urlProvider = urlProvider; this._config = config; this._context = context; this._ignoreExtensions = this._config.StaticExtensionIgnoreList.Select(x => x.ToLower()).ToList(); }
private YarnClient( IUrlProvider yarnRmUrlProviderUri, IRestRequestExecutor restRequestExecutor, IRequestFactory requestFactory) { _requestFactory = requestFactory; _yarnRmUrlProviderUri = yarnRmUrlProviderUri; _restRequestExecutor = restRequestExecutor; }
public UpgradeToPasscodeTransitionHandler(IJwtComposer jwtComposer, StopFlowCommand stopFlowCommand, IUrlProvider urlProvider, SavePartialConnectionCommand savePartialConnectionCommand, IJwtService jwtService, ICookieService cookieService, bool validateSecurityTokens = true) : base(jwtComposer, stopFlowCommand, urlProvider, validateSecurityTokens) { _savePartialConnectionCommand = savePartialConnectionCommand; _jwtService = jwtService; _cookieService = cookieService; }
public RazorProcessor(IFileSystem fileSystem, RazorViewRenderer renderer, ILogger logger, IUrlProvider urlProvider, BeardConfig config, GeneratorContext context) { _fileSystem = fileSystem; _log = logger; _urlProvider = urlProvider; _config = config; _renderer = renderer; _context = context; }
public StaffVerificationReactionHandler(IUrlProvider urlProvider, IOptions <CommonCommandOptions> options, IDiscordRoleManager roleManager, ILogger <StaffVerificationReactionHandler> logger) { _urlProvider = urlProvider; _config = options.Value; _roleManager = roleManager; _logger = logger; }
public AbscencesThresholdAlertProvider(IAlertRepository alertRepository, ICustomParametersProvider customParametersProvider, ITypesRepository typesRepository, IMessagingProvider messagingProvider, IUrlProvider urlProvider, IImageProvider imageProvider, ISMSProvider smsProvider) { _alertRepository = alertRepository; _customParametersProvider = customParametersProvider; _messagingProvider = messagingProvider; _urlProvider = urlProvider; _imageProvider = imageProvider; _smsProvider = smsProvider; _typesRepository = typesRepository; }
public RecoverAcceptStartTransitionHandler(IJwtComposer jwtComposer, StopFlowCommand stopFlowCommand, IUrlProvider urlProvider, IOwnIdCoreConfiguration coreConfiguration, TrySwitchToFido2FlowCommand trySwitchToFido2FlowCommand, RecoverAccountCommand recoverAccountCommand, SetNewEncryptionTokenCommand setNewEncryptionTokenCommand, IIdentitiesProvider identitiesProvider, VerifyFido2CredentialIdCommand verifyFido2CredentialIdCommand) : base(jwtComposer, stopFlowCommand, urlProvider, coreConfiguration, trySwitchToFido2FlowCommand, setNewEncryptionTokenCommand, identitiesProvider, verifyFido2CredentialIdCommand) { _recoverAccountCommand = recoverAccountCommand; }
public BookResourceAssembler(IBookService bookService, Lazy <AuthorResourceAssembler> authorAssemblerLazy, LendingRecordResourceAssembler lendingRecordAssembler, IUrlProvider urlProvider) : base(urlProvider) { BookService = bookService; _authorAssemblerLazy = authorAssemblerLazy; LendingRecordAssembler = lendingRecordAssembler; }
public TrySwitchToFido2FlowCommand(IOwnIdCoreConfiguration coreConfiguration, ICacheItemRepository cacheItemRepository, IUrlProvider urlProvider, ILogger <TrySwitchToFido2FlowCommand> logger, IEventsMetricsService eventsMetricsService = null) { _coreConfiguration = coreConfiguration; _cacheItemRepository = cacheItemRepository; _urlProvider = urlProvider; _logger = logger; _eventsMetricsService = eventsMetricsService; }
/// <summary> /// Instantiates a <see cref="YahooMarketDataProvider"/> /// </summary> /// <param name="urlProvider"></param> /// <param name="webRequestExecutor"></param> /// <param name="quotesResultTranslator"></param> /// <param name="stockDataResultTranslator"></param> protected YahooMarketDataProviderBase(IUrlProvider urlProvider, IWebRequestExecutor webRequestExecutor, IQuotesResultTranslator quotesResultTranslator, IStockDataResultTranslator stockDataResultTranslator) { _urlProvider = urlProvider; _webRequestExecutor = webRequestExecutor; _quotesResultTranslator = quotesResultTranslator; _stockDataResultTranslator = stockDataResultTranslator; }