I have declared a operation contract in a service contract.
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ISalesService" in both code and config file together.
[ServiceContract]
public interface ISalesService
{
[OperationContract]
int getsalesordercount(int salesempid);
}
Now i want to change the interface ISalesService name or operation contract getsalesordercount. if i change that then all the existing clients will get contract mismatch exception . to avoid this i will have to add name attribute to the service contract or operation contract as mentioned below. My question is once i declare the service contract name or operation contract name under what circumstances i may have to change the names of the operation method or service contract?
[ServiceContract(name="salesorgservice"]
public interface ISalesService
{
[OperationContract(name="salesorgmethodservice"]
int getsalesordercount(int salesempid);
}