Answer: [ServiceContract(SessionMode = SessionMode.Required)]
interface IService
{
[OperationContract(IsOneWay = true)]
void Method1();
}
If the client issues a one-way call and then closes the proxy while the method executes, the client will still be blocked until the operation completes.
Please note that the above is a bad design because clients are never meant to be blocked when using one way contract.
Thansks and Regards
Akiii
Found interesting? Add this to: