Conerlius / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
Other
0 stars 0 forks source link

Enabling -p:protoRpc parameter in ProtocGen tool generates code that is referring to unknown class #127

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Enabling -p:protoRpc parameter in ProtocGen tool generates code that is 
referring to unknown class ProtoBuf.ServiceModel.RpcClient.

Steps to reproduce:

1) define service in .proto file, e.g.
service DaemonService
{
    rpc DoHello (HelloRequest) returns (BaseResponse);
}

2) generate .cs with -p:protoRpc parameter
3) following class is generated

    public class DaemonServiceClient : global::ProtoBuf.ServiceModel.RpcClient
    {
      public DaemonServiceClient() : base(typeof(ICirrusDaemonService)) { }
      BaseResponse DoHello(HelloRequest request)
        {
            return (BaseResponse) Send(@"DoHello", request);
        }

    }

Original issue reported on code.google.com by rusl...@gmail.com on 30 Jul 2010 at 11:18