Exemplo n.º 1
0
 public Instance(Configuration config) : base(config)
 {
     Sleeper = new ProgressiveSleeper(config.ApiModeConfiguration.RequestTimeout);
     Logger.Info("Creating HttpClient, endpoint {0}...", config.ApiModeConfiguration.Endpoint);
     Comm              = new HttpApiCommunicator(CreateHttpClient(config.ApiModeConfiguration.Endpoint, config.ApiModeConfiguration.Token));
     Fetcher           = new JobFetcher(Comm);
     PlagiarismChecker = new PlagiarismTester(config);
     Cache             = new LruCache <string, Source>(10000);
 }
Exemplo n.º 2
0
 public Instance(Configuration config) : base(config)
 {
     PlagiarismChecker = new PlagiarismTester(config);
     Sleeper           = new ConstantSleeper(1);
 }