MasiveScan() { for (int i = 1; i <= 4; i++) { IdScanResponse response = await _idScanProvider.Scan(GetBody(i.ToString())); } return(HttpStatusCode.OK, SuccessMsg, true); }
public async Task <IdScanResponse> Scan(IdScanRequest idScanRequest) { IdScanResponse response = (IdScanResponse) CallRestService.CallServiceAsync <IdScanResponse>( _config.GetSection("AgentEndpoints:IdScan").Value, idScanRequest, Method.POST, idScanRequest.id, false, false).Result; if (response == null) { return(null); } return(response); }
Scan(IdScanRequest idScanRequest) { IdScanResponse response = await _idScanProvider.Scan(idScanRequest); return(HttpStatusCode.OK, SuccessMsg, response); }