Example #1
0
        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);
        }
Example #2
0
        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;
        }