Esempio n. 1
0
File: Responder.cs Progetto: dpx3/Q4
 public Responder(string newType, string name)
 {
     requestResponder = requestResponderFactory.GetResponder(newType);
     responderData    = responderDataFactory.GetResponderData(newType);
     requestResponder.responderData = responderData;
     responderData.ResponderName    = name;
 }
Esempio n. 2
0
File: Responder.cs Progetto: dpx3/Q4
        public void SwitchType(string newType)
        {
            RequestData requestData = requestResponder.requestData;

            requestResponder = requestResponderFactory.GetResponder(newType);
            responderData    = responderDataFactory.GetResponderData(newType);
            requestResponder.responderData = responderData;
            requestResponder.requestData   = requestData;
        }