/// <summary> /// Sends a scoring request and waits for the response. /// </summary> /// <param name="scoreRequest">The score request object with response info in it.</param> public ItemScoreResponse SendRequest(string url, ItemScoreRequest scoreRequest) { ItemScoreResponse scoreResponse = HttpWebHelper.SendAndReadXml <ItemScoreRequest, ItemScoreResponse>(url, scoreRequest); Log("ItemScoringClient SendRequest"); return(scoreResponse); }
public void SendResponse(string url, ItemScoreResponse scoreResponse, StringBuilder acknowledgement) { HttpWebHelper.SendXml(url, scoreResponse, acknowledgement); Log("ItemScoringServer SendResponse"); }
public void SendResponseAsync(string url, ItemScoreResponse scoreResponse) { _threadPool.Enqueue(() => SendResponse(url, scoreResponse)); }
public void SendResponse(string url, ItemScoreResponse scoreResponse) { HttpWebHelper.SendXml(url, scoreResponse); Log("ItemScoringServer SendResponse"); }