コード例 #1
0
        /// <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);
        }
コード例 #2
0
 public void SendResponse(string url, ItemScoreResponse scoreResponse, StringBuilder acknowledgement)
 {
     HttpWebHelper.SendXml(url, scoreResponse, acknowledgement);
     Log("ItemScoringServer SendResponse");
 }
コード例 #3
0
 public void SendResponseAsync(string url, ItemScoreResponse scoreResponse)
 {
     _threadPool.Enqueue(() => SendResponse(url, scoreResponse));
 }
コード例 #4
0
 public void SendResponse(string url, ItemScoreResponse scoreResponse)
 {
     HttpWebHelper.SendXml(url, scoreResponse);
     Log("ItemScoringServer SendResponse");
 }