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 }); }
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)); }
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); }
set => Put(ResponseKey, value);
public Response GetMessageDefaultResponses(ResponseKey key) { return(this.transportService.RemoteProcedureCall <ResponseKey, Response>(MethodBase.GetCurrentMethod(), key)); }