Exemple #1
0
        public void Method_V_M(StructType value)
        {
            var call = new RpcCallParameters();

            call.ServiceName = TestServiceInterface_Proxy.ServiceName;
            call.MethodName  = "Method_V_M";
            call.CallData    = value.ToByteArray();
            var result = this.client.CallService(call);

            if (result.Status != RpcStatus.Succeeded)
            {
                throw new Exception(); // TODO: Be more specific
            }
        }
Exemple #2
0
        public StructType Method_M_M(IServerContext context, StructType value)
        {
            var call = new RpcCallParameters();

            call.ServiceName = TestServiceInterface_Proxy.ServiceName;
            call.MethodName  = "Method_M_M";
            call.CallData    = value.ToByteArray();
            var result = this.client.CallService(call);

            if (result.Status != RpcStatus.Succeeded)
            {
                throw new Exception(); // TODO: Be more specific
            }

            var returnValue = new StructType();

            returnValue.MergeFrom(result.ResultData);
            return(returnValue);
        }