public PathPatternsFile(IConfigurationSectionProvider configurationSectionProvider, string configurationFileName) { _configurationSectionProvider = configurationSectionProvider; _configurationFileName = configurationFileName; _matcherLines = new Lazy<List<PathMatcher>>(CreateMatcherLines, LazyThreadSafetyMode.PublicationOnly); _matcher = new Lazy<IPathMatcher>(CreateMatcher, LazyThreadSafetyMode.PublicationOnly); }
public PathPatternsFile(IConfigurationSectionProvider configurationSectionProvider, string configurationFileName) { _configurationSectionProvider = configurationSectionProvider; _configurationFileName = configurationFileName; _matcherLines = new Lazy <List <PathMatcher> >(CreateMatcherLines, LazyThreadSafetyMode.PublicationOnly); _matcher = new Lazy <IPathMatcher>(CreateMatcher, LazyThreadSafetyMode.PublicationOnly); }
public ChromiumDiscovery(IFileSystem fileSystem, IConfigurationSectionProvider configurationSectionProvider) { _fileSystem = fileSystem; var contents = ConfigurationSectionContents.Create(configurationSectionProvider, ConfigurationFileNames.ChromiumEnlistmentDetectionPatterns); _chromiumEnlistmentFilePatterns = new FilePatternsPathMatcherProvider(contents); }
public ProjectFileProject(IConfigurationSectionProvider configurationSectionProvider, FullPathName rootPath) { _rootPath = rootPath; _directoryFilter = new DirectoryFilter(configurationSectionProvider); _fileFilter = new FileFilter(configurationSectionProvider); _searchableFilesFilter = new SearchableFilesFilter(configurationSectionProvider); }
public ProjectFileProject(IConfigurationSectionProvider configurationSectionProvider, FullPathName rootPath) { _rootPath = rootPath; _directoryFilter = new DirectoryFilter(configurationSectionProvider); _fileFilter = new FileFilter(configurationSectionProvider); _searchableFilesFilter = new SearchableFilesFilter(configurationSectionProvider); }
/// <summary> /// Constructs a new instance of the <see cref="EnvironmentSelector"/> class /// </summary> /// <param name="accessToken">An access token used to authenticate with the feed</param> /// <param name="sectionProvider">A <see cref="IConfigurationSectionProvider"/> used to access <see cref="IOddsFeedConfigurationSection"/></param> internal EnvironmentSelector(string accessToken, IConfigurationSectionProvider sectionProvider) { Contract.Requires(!string.IsNullOrEmpty(accessToken)); Contract.Requires(sectionProvider != null); _accessToken = accessToken; _sectionProvider = sectionProvider; }
/// <summary> /// Constructs a new instance of the <see cref="EnvironmentSelector"/> class /// </summary> /// <param name="accessToken">An access token used to authenticate with the feed</param> /// <param name="sectionProvider">A <see cref="IConfigurationSectionProvider"/> used to access <see cref="IOddsFeedConfigurationSection"/></param> internal EnvironmentSelector(string accessToken, IConfigurationSectionProvider sectionProvider) { Guard.Argument(accessToken, nameof(accessToken)).NotNull().NotEmpty(); Guard.Argument(sectionProvider, nameof(sectionProvider)).NotNull(); _accessToken = accessToken; _sectionProvider = sectionProvider; }
public Project(IConfigurationSectionProvider configurationSectionProvider, FullPath rootPath) { _rootPath = rootPath; _configurationToken = configurationSectionProvider.WhenUpdated(); _directoryFilter = new DirectoryFilter(configurationSectionProvider); _fileFilter = new FileFilter(configurationSectionProvider); _searchableFilesFilter = new SearchableFilesFilter(configurationSectionProvider); }
/// <summary> /// Initializes a new instance of the <see cref="CustomConfigurationBuilder"/> class. /// </summary> /// <param name="accessToken"></param> /// <param name="sectionProvider"></param> internal CustomConfigurationBuilder(string accessToken, IConfigurationSectionProvider sectionProvider) : base(accessToken, sectionProvider) { _messagingHost = SdkInfo.IntegrationHost; _messagingPort = SdkInfo.DefaultHostPort; _useMessagingSsl = true; _apiHost = SdkInfo.IntegrationApiHost; _useApiSsl = true; }
public EmailConfirmationProducer( IConfigurationSectionProvider <EmailProducerSettings> configurationSectionProvider) { if (configurationSectionProvider == null) { throw new ArgumentNullException(nameof(configurationSectionProvider)); } _configurationSectionProvider = configurationSectionProvider; }
/// <summary> /// Initializes a new instance of the <see cref="ConfigurationBuilderBase{T}"/> class /// </summary> /// <param name="accessToken">An access token used to authenticate with the feed</param> /// <param name="sectionProvider">A <see cref="IConfigurationSectionProvider"/> used to access <see cref="IOddsFeedConfigurationSection"/></param> internal ConfigurationBuilderBase(string accessToken, IConfigurationSectionProvider sectionProvider) { Contract.Requires(!string.IsNullOrEmpty(accessToken)); Contract.Requires(sectionProvider != null); AccessToken = accessToken; SectionProvider = sectionProvider; ExceptionHandlingStrategy = ExceptionHandlingStrategy.CATCH; NodeId = 0; DefaultLocale = null; }
public LoggingConfigurationProvider( IConfigurationSectionProvider configurationSectionProvider) { SynnduitConfigurationSection configuration = configurationSectionProvider.GetConfiguration(); this.migrationLoggingConfiguration = this.GetMigrationLoggingConfiguration(configuration); this.garbageCollectionLoggingConfiguration = this.GetGarbageCollectionLoggingConfiguration(configuration); }
/// <summary> /// Initializes a new instance of the <see cref="ConfigurationBuilderBase{T}"/> class /// </summary> /// <param name="accessToken">An access token used to authenticate with the feed</param> /// <param name="sectionProvider">A <see cref="IConfigurationSectionProvider"/> used to access <see cref="IOddsFeedConfigurationSection"/></param> internal ConfigurationBuilderBase(string accessToken, IConfigurationSectionProvider sectionProvider) { Guard.Argument(accessToken, nameof(accessToken)).NotNull().NotEmpty(); Guard.Argument(sectionProvider, nameof(sectionProvider)).NotNull(); AccessToken = accessToken; SectionProvider = sectionProvider; ExceptionHandlingStrategy = ExceptionHandlingStrategy.CATCH; NodeId = 0; DefaultLocale = null; }
/// <summary> /// Initializes a new instance of the <see cref="ReplayConfigurationBuilder"/> class /// </summary> /// <param name="accessToken"></param> /// <param name="sectionProvider"></param> public ReplayConfigurationBuilder(string accessToken, IConfigurationSectionProvider sectionProvider) : base(accessToken, sectionProvider) { }
public ChromiumDiscoveryWithCache(IConfigurationSectionProvider configurationSectionProvider, IFileSystem fileSystem) { _chromiumDiscovery = new ChromiumDiscovery(fileSystem, configurationSectionProvider); }
/// <summary> /// Construct RecoveryConfigurationBuilder /// </summary> /// <param name="accessToken">An access token used to authenticate with the feed</param> /// <param name="sectionProvider">A <see cref="IConfigurationSectionProvider"/> used to access <see cref="IOddsFeedConfigurationSection"/></param> internal RecoveryConfigurationBuilder(string accessToken, IConfigurationSectionProvider sectionProvider) : base(accessToken, sectionProvider) { InactivitySeconds = SdkInfo.MinInactivitySeconds; MaxRecoveryTimeInSeconds = SdkInfo.MaxRecoveryExecutionInSeconds; }
public static IConfigurationSectionContents Create(IConfigurationSectionProvider provider, string sectionName) { var lines = provider.GetSection(sectionName, FilterDirectories); return(lines); }
public FileFilter(IConfigurationSectionProvider configurationSectionProvider) { _ignorePatternsFile = new PathPatternsFile(configurationSectionProvider, ConfigurationSectionNames.SourceExplorerIgnore); }
public ChromiumProjectDiscoveryProvider(IConfigurationFileLocator configurationFileLocator, IFileSystem fileSystem) { _configurationSectionProvider = new ConfigurationFileConfigurationSectionProvider(configurationFileLocator); _chromiumDiscovery = new ChromiumDiscoveryWithCache<Project>(_configurationSectionProvider, fileSystem); }
public ChromiumDiscovery(IFileSystem fileSystem, IConfigurationSectionProvider configurationSectionProvider) { _fileSystem = fileSystem; var contents = ConfigurationSectionContents.Create(configurationSectionProvider, ConfigurationFileNames.ChromiumEnlistmentDetectionPatterns); _chromiumEnlistmentFilePatterns = new FilePatternsPathMatcherProvider(contents); }
public ChromiumDiscovery(IConfigurationSectionProvider configurationSectionProvider) { _chromiumEnlistmentPatterns = new PathPatternsFile(configurationSectionProvider, ConfigurationFilenames.ChromiumEnlistmentDetectionPatterns); }
public ChromiumDiscovery(IConfigurationSectionProvider configurationSectionProvider, IFileSystem fileSystem) { _fileSystem = fileSystem; _chromiumEnlistmentPatterns = new PathPatternsFile(configurationSectionProvider, ConfigurationFilenames.ChromiumEnlistmentDetectionPatterns); }
public ChromiumProjectDiscoveryProvider(IConfigurationFileLocator configurationFileLocator, IFileSystem fileSystem) { _configurationSectionProvider = new ConfigurationFileConfigurationSectionProvider(configurationFileLocator); _chromiumDiscovery = new ChromiumDiscoveryWithCache <Project>(_configurationSectionProvider, fileSystem); }
public BootstrapperFactory( IConfigurationSectionProvider configurationSectionProvider) { this.configurationSectionProvider = configurationSectionProvider; }
/// <summary> /// Initializes a new instance of the <see cref="ConfigurationBuilder"/> class /// </summary> /// <param name="accessToken">An access token used to authenticate with the feed</param> /// <param name="sectionProvider">A <see cref="IConfigurationSectionProvider"/> used to access <see cref="IOddsFeedConfigurationSection"/></param> /// <param name="environment">An <see cref="SdkEnvironment"/> specifying the selected environment</param> public ConfigurationBuilder(string accessToken, IConfigurationSectionProvider sectionProvider, SdkEnvironment environment) : base(accessToken, sectionProvider) { _environment = environment; }
public SearchableFilesFilter(IConfigurationSectionProvider configurationSectionProvider) { _ignorePatternsFile = new PathPatternsFile(configurationSectionProvider, ConfigurationSectionNames.SearchableFilesIgnore); _includePatternsFile = new PathPatternsFile(configurationSectionProvider, ConfigurationSectionNames.SearchableFilesInclude); }
public static IConfigurationSectionContents Create(IConfigurationSectionProvider provider, string sectionName) { var lines = provider.GetSection(sectionName, FilterDirectories); return lines; }
/// <summary> /// Initializes a new instance of the <see cref="TokenSetter"/> class /// </summary> /// <param name="configurationSectionProvider">A <see cref="IConfigurationSectionProvider"/> instance used to access <see cref="IOddsFeedConfigurationSection"/></param> internal TokenSetter(IConfigurationSectionProvider configurationSectionProvider) { Contract.Requires(configurationSectionProvider != null); _configurationSectionProvider = configurationSectionProvider; }
public ChromiumProjectDiscoveryProvider(IConfigurationFileProvider configurationFileProvider) { _configurationSectionProvider = new ConfigurationFileSectionProvider(configurationFileProvider); _chromiumDiscovery = new ChromiumDiscoveryWithCache<ChromiumProject>(_configurationSectionProvider); }
public ChromiumProjectDiscoveryProvider(IConfigurationFileProvider configurationFileProvider) { _configurationSectionProvider = new ConfigurationFileSectionProvider(configurationFileProvider); _chromiumDiscovery = new ChromiumDiscoveryWithCache <ChromiumProject>(_configurationSectionProvider); }
/// <summary> /// Initializes a new instance of the <see cref="TokenSetter"/> class /// </summary> /// <param name="configurationSectionProvider">A <see cref="IConfigurationSectionProvider"/> instance used to access <see cref="IOddsFeedConfigurationSection"/></param> internal TokenSetter(IConfigurationSectionProvider configurationSectionProvider) { Guard.Argument(configurationSectionProvider, nameof(configurationSectionProvider)).NotNull(); _configurationSectionProvider = configurationSectionProvider; }
/// <summary> /// Construct RecoveryConfigurationBuilder /// </summary> /// <param name="accessToken">An access token used to authenticate with the feed</param> /// <param name="sectionProvider">A <see cref="IConfigurationSectionProvider"/> used to access <see cref="IOddsFeedConfigurationSection"/></param> internal RecoveryConfigurationBuilder(string accessToken, IConfigurationSectionProvider sectionProvider) : base(accessToken, sectionProvider) { }
/// <summary> /// Initializes a new instance of the <see cref="OddsFeedConfigurationBuilder"/> class /// </summary> /// <param name="sectionProvider">A <see cref="IConfigurationSectionProvider"/> used to retrieve settings from config file</param> public OddsFeedConfigurationBuilder(IConfigurationSectionProvider sectionProvider) { _section = sectionProvider?.GetSection(); Init(); }
public SearchableFilesFilter(IConfigurationSectionProvider configurationSectionProvider) { _ignorePatternsFile = new PathPatternsFile(configurationSectionProvider, ConfigurationSectionNames.SearchableFilesIgnore); _includePatternsFile = new PathPatternsFile(configurationSectionProvider, ConfigurationSectionNames.SearchableFilesInclude); }
public ChromiumDiscoveryWithCache(IConfigurationSectionProvider configurationSectionProvider) { _chromiumDiscovery = new ChromiumDiscovery(configurationSectionProvider); }
public Bootstrapper(IConfigurationSectionProvider configurationSectionProvider) { this.configurationSectionProvider = configurationSectionProvider; this.compositionContainer = this.CreateCompositionContainer(); container.Value.Bootstrapper = this; }
public FileFilter(IConfigurationSectionProvider configurationSectionProvider) { _ignorePatternsFile = new PathPatternsFile(configurationSectionProvider, ConfigurationSectionNames.SourceExplorerIgnore); }
public ConfigurationLoader( IConfigurationSectionProvider configurationSectionProvider) { this.configurationSectionProvider = configurationSectionProvider; }