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); } }
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); } }
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); } }