//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); } }
public ServiceBroker() { serviceManager = new ServiceManager(); logger = Logger.Instance; logger.Debug("Initialized ServiceBroker"); }