コード例 #1
0
        private string ProcessRequest(string request,
                                      IZSocket handler,
                                      IHttpServiceProcessor service,
                                      ServerProperties properties,
                                      IHttpResponse httpResponse)
        {
            var returnCode = service.ProcessRequest(request,
                                                    httpResponse,
                                                    properties);

            return(returnCode);
        }
コード例 #2
0
 public string HandleRequest(string request,
                             IZSocket handler, IHttpServiceProcessor service,
                             ServerProperties properties,
                             IHttpResponse httpResponse)
 {
     if (request.Substring(0, 4)
         == "POST")
     {
         return(ConCatRequest(request, handler,
                              service, properties, httpResponse));
     }
     return(ProcessRequest(request, handler,
                           service, properties, httpResponse));
 }
コード例 #3
0
        private string ConCatRequest(string request,
                                     IZSocket handler,
                                     IHttpServiceProcessor service,
                                     ServerProperties properties,
                                     IHttpResponse httpResponse)
        {
            var concatRequest = request;

            if (!request.Contains(@"""board"""))
            {
                concatRequest += handler.Receive();
            }
            return(ProcessRequest(concatRequest, handler,
                                  service, properties, httpResponse));
        }
コード例 #4
0
 public MockZSocket StubAcceptObject(IZSocket returnObject)
 {
     _mock.Setup(m => m.Accept()).Returns(returnObject);
     return(this);
 }