示例#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);
            }
        }
示例#2
0
 public ServiceBroker()
 {
     serviceManager = new ServiceManager();
     logger = Logger.Instance;
     logger.Debug("Initialized ServiceBroker");
 }
示例#3
0
 public ServiceBroker()
 {
     serviceManager = new ServiceManager();
     logger         = Logger.Instance;
     logger.Debug("Initialized ServiceBroker");
 }