Created
October 18, 2014 13:30
-
-
Save rahulsahay19/7e63c1fd29a13b3a7694 to your computer and use it in GitHub Desktop.
Service Contract
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IEmployee | |
{ | |
string PrintEmployee(Employee empl); | |
} | |
Now, to make the service contract, we need to annotate the same with | |
different attributes as shown below. | |
[ServiceContract] | |
public interface IEmployee | |
{ | |
[OperationContract] | |
string PrintEmployee(Employee empl); | |
} | |
Now, all these attributes are available in | |
System.ServiceModel namespace. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment