public pb::IMessageLite CallMethod(string methodName, pb::ICodedInputStream input, pb::ExtensionRegistry registry)
            {
                switch (methodName)
                {
                case "Send": return(implementation.CallMethod(methodName, global::Sample.MyRequest.ParseFrom(input, registry), global::Sample.MyResponse.CreateBuilder()));

                default: throw pb::ThrowHelper.CreateMissingMethod(typeof(IMyService), methodName);
                }
            }
Esempio n. 2
0
            public pb::IMessageLite CallMethod(string methodName, pb::ICodedInputStream input, pb::ExtensionRegistry registry)
            {
                switch (methodName)
                {
                case "List": return(implementation.CallMethod(methodName, global::books.Empty.ParseFrom(input, registry), global::books.BookList.CreateBuilder()));

                default: throw pb::ThrowHelper.CreateMissingMethod(typeof(IBookService), methodName);
                }
            }
Esempio n. 3
0
            public pb::IMessageLite CallMethod(string methodName, pb::ICodedInputStream input, pb::ExtensionRegistry registry)
            {
                switch (methodName)
                {
                case "SayHello": return(implementation.CallMethod(methodName, global::helloworld.HelloRequest.ParseFrom(input, registry), global::helloworld.HelloReply.CreateBuilder()));

                default: throw pb::ThrowHelper.CreateMissingMethod(typeof(IGreeter), methodName);
                }
            }