/// <summary>
        /// Entry point for all client requests.        
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public ApplicationResponse ProcessRequest(ApplicationRequest req)
        {
            ///
            /// Firstable we clean the application data for the new request
            ///

            this.request = req;
            this.response = null;
            LastRequest = DateTime.Now;

            NewRequest();

            return this.response;
        }
 /// <summary>
 /// Incomging shared response from an application 
 /// </summary>
 /// <param name="sender">the application that elaborate the response</param>
 /// <param name="response"></param>
 /// <param name="req">the initial request</param>
 public abstract void OnNewShareResponse(ApplicationInstanceBase sender, ApplicationResponse response, ApplicationRequest req);
Esempio n. 3
0
 /// <summary>
 /// An Application instace share a response.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="response"></param>
 /// <param name="req"></param>
 public override void OnNewShareResponse(ApplicationInstanceBase sender, ApplicationResponse response, ApplicationRequest req)
 {
     if (response is SharedChatMessage)
     {
         ///
         /// if the response type is SharedChatMessage we simple get the chat message and put it into the queue
         ///
         SharedChatMessage sharedresponse = (SharedChatMessage)response;
         localqueuemessages.Enqueue(sharedresponse.Message);
     }
 }