Question

I have changed a former WCF one-way service to a duplex service so I can implement callbacks.

My actual problem is since that change, every piece of code that instanciates the service proxy needs to be modified to pass an instance context as parameter into the constructor.

There are many, many places in a few different projects that make use of that service. Everyone of them is now broken.

Will I be forced to go back in every proxy instanciation and pass an instance context into the constructor ? Can I avoid this ?

Was it helpful?

Solution

Simply speaking - no you cannot avoid this.. Presumably you need the duplex service for one WCF call to be able to callback... I would probably just create a separate method on the interface rather than changing the existing one so that you don't break the contract between service and client.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top