public string Register(string identifier, UInt32 version, InvokeResponder callback) { var methodGuid = genGuid(); localMethods[methodGuid] = new LocalInvokeMethod { identifier = identifier + "/v" + version, method = callback, methodGuid = methodGuid }; var msg = new Message { cmd = Message.Cmd.REGISTER_INVOKE, payload = stringToByteArray(methodGuid), source_component_guid = guid, identifier = identifier + "/v" + version }; publisher.Publish(proxyGuid, ref msg); return(methodGuid); }
public string Register(string identifier, UInt32 version, InvokeResponder callback) { var methodGuid = genGuid(); localMethods[methodGuid] = new LocalInvokeMethod { identifier = identifier + "/v" + version, method = callback, methodGuid = methodGuid }; var msg = new Message { cmd = Message.Cmd.REGISTER_INVOKE, payload = stringToByteArray(methodGuid), source_component_guid = guid, identifier = identifier + "/v" + version }; publisher.Publish(proxyGuid, ref msg); return methodGuid; }