示例#1
0
        public Response GetMessageDefaultResponses(ResponseKey key)
        {
            var(responses, repository) = this.responseManager.Get(key.MessageKey, key.ContextType, key.Context);

            return(new Response {
                Key = key, Repository = repository, Responses = responses
            });
        }
示例#2
0
        private static void ResponseInfoMessage(HttpContext paHttpContext, ResponseKey paResponseKey, String paResponseData)
        {
            // JavaScriptSerializer lcJavascriptSerializer;
            Dictionary <String, String> lcResponse;

            lcResponse = new Dictionary <string, string>();
            // lcJavascriptSerializer = new JavaScriptSerializer();

            lcResponse.Add(ResponseKey.Result.ToString().ToLower(), Result.Success.ToString().ToLower());
            lcResponse.Add(paResponseKey.ToString().ToLower(), paResponseData);

            paHttpContext.Response.Write(General.JSONSerialize(lcResponse));
        }
示例#3
0
        public List <Response> GetMessageResponses()
        {
            var allKeys = this.GetMessageKeys();
            var list    = new List <Response>();

            foreach (var key in allKeys)
            {
                var objectKey = new ResponseKey {
                    MessageKey = key
                };
                list.Add(this.GetMessageDefaultResponses(objectKey));
            }

            return(list);
        }
示例#4
0
 set => Put(ResponseKey, value);
示例#5
0
 public Response GetMessageDefaultResponses(ResponseKey key)
 {
     return(this.transportService.RemoteProcedureCall <ResponseKey, Response>(MethodBase.GetCurrentMethod(), key));
 }