Ejemplo n.º 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);
 }
Ejemplo n.º 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;
 }