Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
1.16/5 (4 votes)
Help me to create a WCF service with Request-Response basis means in Duplex mode
Posted

Something like this?

How to: Create a Duplex Contract[^]
 
Share this answer
 
Comments
Tanumay99 15-Nov-13 6:12am    
Thanks for help.
But the example CalculatorDuplex is named Duplex. But it is not work on duplex mode.
Because there all the service are set as
[OperationContract(IsOneWay=true)]
So how it work as duplex mode?
Nicholas Marty 15-Nov-13 6:19am    
"IsOneWay=true" is not related to Duplex. It just says that the Operation doesn't return a response. You can remove it and return e.g. an integer or something like that if you like.
Take a look at the "ICalculatorDuplexCallback" usage this is how the Server -> Client calls are made

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900