I am having a WCF duplex service with Silverlight client and .NET 3.5 WCF service.
The scenario I have is: during the duplex push OneWay operation from server to client if an exception happens in client notification handler the channel gets silently faulted so any further duplex calls from server timeout and fail. (As explained here One-Way Operations and Exceptions)
My question(s):
- Can I just decorate with
FaultContract
aOneWay OperationContract
, wrap the exception on client and prevent faulting of the channel? - if not, what would be some other way to catch the exception which occurred on the client during the duplex push from server?
When you use
OneWay
OperationContract
, the receiver should not reply nor the sender of the request should expect one.