views:

159

answers:

1

Can I use net.tcp bindings for protobuf-net WCF?

Can I use ClientBase or I have to use ProtoClient?

+1  A: 

If you are already using TCP bindings for your WCF, then I would imagine that you can use protobuf-net; quite simply, I haven't tried this combination, but since the transport and serializer are separate I can't think of a reason why not.

I will have to try it, perhaps using the new endpoint stuff... I have a test rig, so I'll try reconfiguring the transport - see if it works. It is largely a case of applying the info here.

Marc Gravell
The problem was inherited classes and being a first time user asked it. It works like charm. No issues.
Rohit
Is there any issue in supporting IList<T> by creating instance of List<T> and returning it.
Rohit
It should work fine - are you seeing an issue? Line 60 in PropertyList.cs handles this, defaulting to `List<T>` if you use `IList<T>`...
Marc Gravell