Suppose, I have a Base
class and a Foo
class derived from Base
:
class Base {
}
class Foo : Base {
}
I'm writing the protobuf protocol to use their methods.
They share some functionality, is there a way to avoid rewriting code by passing the service?
For example:
service BaseProto {
rpc SomeFunction (Request) returns (Response)
}
service FooProto {
**Passing the service here instead of rewriting SomeFunction()
}
I'm working with C#, ProtoBuf 3.0.