7

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

Can I use ClientBase or I have to use ProtoClient?

skaffman
  • 398,947
  • 96
  • 818
  • 769
Rohit
  • 3,610
  • 7
  • 45
  • 76

1 Answers1

4

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
  • 1,026,079
  • 266
  • 2,566
  • 2,900
  • 2
    The problem was inherited classes and being a first time user asked it. It works like charm. No issues. – Rohit Nov 19 '09 at 16:51
  • Is there any issue in supporting IList by creating instance of List and returning it. – Rohit Nov 20 '09 at 19:59
  • It should work fine - are you seeing an issue? Line 60 in PropertyList.cs handles this, defaulting to `List` if you use `IList`... – Marc Gravell Nov 20 '09 at 20:09