private bool DoInvokeMessage(long messageID, JSProxyMgr.ExecCallback callback, Dictionary<string, object> jsonData) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type JSProxyMgr.\u003CDoInvokeMessage\u003Ec__AnonStoreyA2 messageCAnonStoreyA2 = new JSProxyMgr.\u003CDoInvokeMessage\u003Ec__AnonStoreyA2(); // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.callback = callback; // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.messageID = messageID; if (!jsonData.ContainsKey("destination") || !jsonData.ContainsKey("method") || !jsonData.ContainsKey("params")) { // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.callback((object) JSProxyMgr.FormatError(messageCAnonStoreyA2.messageID, -1001, "errUnknownObject", "object reference, method name or parameters missing")); return false; } string reference = (string) jsonData["destination"]; string str1 = (string) jsonData["method"]; List<object> data = (List<object>) jsonData["params"]; // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.destObject = this.GetDestinationObject(reference); // ISSUE: reference to a compiler-generated field if (messageCAnonStoreyA2.destObject == null) { // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.callback((object) JSProxyMgr.FormatError(messageCAnonStoreyA2.messageID, -1001, "errUnknownObject", "cannot find object with reference <" + reference + ">")); return false; } // ISSUE: reference to a compiler-generated field MethodInfo[] methods = messageCAnonStoreyA2.destObject.GetType().GetMethods(); // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.foundMethod = (MethodInfo) null; // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.parameters = (object[]) null; string str2 = string.Empty; foreach (MethodInfo method in methods) { if (!(method.Name != str1)) { try { // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.parameters = this.ParseParams(method, data); // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.foundMethod = method; break; } catch (Exception ex) { str2 = ex.Message; } } } // ISSUE: reference to a compiler-generated field if (messageCAnonStoreyA2.foundMethod == null) { // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.callback((object) JSProxyMgr.FormatError(messageCAnonStoreyA2.messageID, -1002, "errUnknownMethod", "cannot find method <" + str1 + "> for object <" + reference + ">, reason:" + str2)); return false; } // ISSUE: reference to a compiler-generated method this.AddTask(new JSProxyMgr.TaskCallback(messageCAnonStoreyA2.\u003C\u003Em__1D3)); return true; }
private bool DoInvokeMessage(long messageID, JSProxyMgr.ExecCallback callback, Dictionary <string, object> jsonData) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type JSProxyMgr.\u003CDoInvokeMessage\u003Ec__AnonStoreyA2 messageCAnonStoreyA2 = new JSProxyMgr.\u003CDoInvokeMessage\u003Ec__AnonStoreyA2(); // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.callback = callback; // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.messageID = messageID; if (!jsonData.ContainsKey("destination") || !jsonData.ContainsKey("method") || !jsonData.ContainsKey("params")) { // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.callback((object)JSProxyMgr.FormatError(messageCAnonStoreyA2.messageID, -1001, "errUnknownObject", "object reference, method name or parameters missing")); return(false); } string reference = (string)jsonData["destination"]; string str1 = (string)jsonData["method"]; List <object> data = (List <object>)jsonData["params"]; // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.destObject = this.GetDestinationObject(reference); // ISSUE: reference to a compiler-generated field if (messageCAnonStoreyA2.destObject == null) { // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.callback((object)JSProxyMgr.FormatError(messageCAnonStoreyA2.messageID, -1001, "errUnknownObject", "cannot find object with reference <" + reference + ">")); return(false); } // ISSUE: reference to a compiler-generated field MethodInfo[] methods = messageCAnonStoreyA2.destObject.GetType().GetMethods(); // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.foundMethod = (MethodInfo)null; // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.parameters = (object[])null; string str2 = string.Empty; foreach (MethodInfo method in methods) { if (!(method.Name != str1)) { try { // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.parameters = this.ParseParams(method, data); // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.foundMethod = method; break; } catch (Exception ex) { str2 = ex.Message; } } } // ISSUE: reference to a compiler-generated field if (messageCAnonStoreyA2.foundMethod == null) { // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field messageCAnonStoreyA2.callback((object)JSProxyMgr.FormatError(messageCAnonStoreyA2.messageID, -1002, "errUnknownMethod", "cannot find method <" + str1 + "> for object <" + reference + ">, reason:" + str2)); return(false); } // ISSUE: reference to a compiler-generated method this.AddTask(new JSProxyMgr.TaskCallback(messageCAnonStoreyA2.\u003C\u003Em__1D3)); return(true); }