예제 #1
0
 public Scanner(string host)
 {
     this.esclClient           = new EsclClient();
     this.Host                 = host;
     this.statusProvider       = new StatusProvider(esclClient, host);
     this.capabilitiesProvider = new CapabilitiesProvider(esclClient, host);
     this.requestGenerator     = new EsclScanRequestGenerator();
     this.jobCreator           = new EsclJobCreator(esclClient, host, requestGenerator);
 }
예제 #2
0
 public EsclJobCreator(IEsclClient esclClient,
                       string host,
                       EsclScanRequestGenerator scanRequestGenerator)
 {
     this.esclClient           = esclClient;
     this.host                 = host;
     this.endpoint             = string.Format(NEW_JOB_URI_PATTERN, host);
     this.scanRequestGenerator = scanRequestGenerator;
 }