private void HandleRequest(Socket workerSocket) { #region Get Request Data Message RequestDataMessage requestDataMessage = new RequestInterceptor().GetRequest(workerSocket); #endregion #region Business Logic var dataAgent = new DataAgent(); // Retransmission (delegation) of data request string data = dataAgent.MakeRequest(requestDataMessage, _mavenEndPoint, "SECRET"); #endregion #region Send Back Response Data dataAgent.SendResponse(workerSocket, data); #endregion workerSocket.Close(); }
public string MakeRequest(RequestDataMessage requestMessage, int discoveryTimeout) { var dataAgent = new DataAgent(); string data = dataAgent.MakeRequest(requestMessage, ProxyEndPoint, "SECRET"); return(data); }