HandleRequest() public method

Invokes the appropriate handler for a given request
public HandleRequest ( Message request, Message response, System.Web.SessionState.HttpSessionState session, HttpResponse httpresponse ) : void
request Message The ServiceRequest object corresponding to the incoming request
response Message The ServiceResponse object corresponding to the outgoing response
session System.Web.SessionState.HttpSessionState
httpresponse System.Web.HttpResponse
return void
Ejemplo n.º 1
0
        //Sends messages to Services -- called from the ServiceBroker
        public void Dispatch(List <Message> messageList, ServiceManager manager, HttpRequest httprequest, HttpResponse httpresponse, HttpSessionState session, ServiceBroker broker)
        {
            Logger.Instance.Debug("Dispatching " + messageList.Count + " message(s) for Session ID: " + session.SessionID);

            foreach (Message request in messageList)
            {
                Message response = new Message(session, broker);
                response.Direction = MessageDirection.OUTGOING;
                manager.HandleRequest(request, response, session, httpresponse);
            }
        }
Ejemplo n.º 2
0
        //Sends messages to Services -- called from the ServiceBroker
        public void Dispatch(List<Message> messageList, ServiceManager manager, HttpRequest httprequest, HttpResponse httpresponse, HttpSessionState session, ServiceBroker broker)
        {
            Logger.Instance.Debug("Dispatching " + messageList.Count + " message(s) for Session ID: " + session.SessionID);

            foreach (Message request in messageList)
            {
                Message response = new Message(session, broker);
                response.Direction = MessageDirection.OUTGOING;
                manager.HandleRequest(request, response, session, httpresponse);
            }
        }