public DomainConsumer(IWebCrawlerFactory crawlerFactory, IProcessorProvider processorProvider, ProcessorContext processorContext, CrawlDaddyConfig config) { if (crawlerFactory == null) { throw new ArgumentNullException("crawlerFactory"); } if (processorProvider == null) { throw new ArgumentNullException("processorProvider"); } if (processorContext == null) { throw new ArgumentNullException("processorContext"); } if (config == null) { throw new ArgumentNullException("config"); } _crawlerFactory = crawlerFactory; _processorProvider = processorProvider; _processorContext = processorContext; _config = config; }
public PlexSync(IPlexApi plexApi, IPlexService plexService, ICompletionService completionService, IProcessorProvider processorProvider, IUnitOfWork unitOfWork, IOptionsSnapshot <PlexSettings> plexSettings, ILogger <PlexSync> logger) { _plexApi = plexApi; _plexService = plexService; _completionService = completionService; _processorProvider = processorProvider; _unitOfWork = unitOfWork; _plexSettings = plexSettings.Value; _logger = logger; }
public PlexSyncTests() { _plexApi = Substitute.For <IPlexApi>(); _plexService = Substitute.For <IPlexService>(); _processorProvider = Substitute.For <IProcessorProvider>(); _completionService = Substitute.For <ICompletionService>(); _unitOfWork = Substitute.For <IUnitOfWork>(); var logger = Substitute.For <ILogger <PlexSync> >(); var plexSettings = new PlexSettingsBuilder().Build(); var options = Substitute.For <IOptionsSnapshot <PlexSettings> >(); options.Value.Returns(plexSettings); _underTest = new PlexSync(_plexApi, _plexService, _completionService, _processorProvider, _unitOfWork, options, logger); }
public HttpHostConfiguration SetProcessorProvider(IProcessorProvider provider) { this.ProcessorProvider = provider; return(this); }
/// <summary> /// Initializes a new instance of the <see cref="ProcessorPipeline"/> class. /// </summary> /// <param name="processorProvider">The processor provider which is used to discover processors.</param> public ProcessorPipeline(IProcessorProvider processorProvider) { ProcessorProvider = processorProvider; }
public HttpEndpointBehavior(HttpHostConfiguration configuration) { this.configuration = configuration; this.processorProvider = configuration.ProcessorProvider; }
public PUClassProcessor(IProcessorProvider <TPrinter> provider) { this.provider = provider; }
public HttpHostConfiguration SetProcessorProvider(IProcessorProvider provider) { this.ProcessorProvider = provider; return this; }
public WebLinkingProcessorProvider(WebLinksRegistry config, IProcessorProvider inner) { LinksRegistry = config; _inner = inner; }
public PUAssemblyProcessor(IProcessorProvider <TPrinter> provider) { this.provider = provider; }