Is the below code correct :-

[ServiceContract]
interface IMyContract
{
[OperationContract(IsOneWay = true)]
int MyMethod( );
}

 Posted by Akiii on 5/17/2012 | Category: WCF Interview questions | Views: 3661 | Points: 40
Answer:

No, there should be no reply associated with a one-way operation. In the above an integer value is returned even though the IsOneWay property is true !



Thanks and Regards
Akiii


| Alert Moderator 

Comments or Responses

Login to post response