What is Sessionful Services in WCF One Way Contract ?

 Posted by Akiii on 5/17/2012 | Category: WCF Interview questions | Views: 2560 | Points: 40
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


| Alert Moderator 

Comments or Responses

Login to post response