Skip to content

Instantly share code, notes, and snippets.

@rahulsahay19
Created October 18, 2014 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulsahay19/7e63c1fd29a13b3a7694 to your computer and use it in GitHub Desktop.
Save rahulsahay19/7e63c1fd29a13b3a7694 to your computer and use it in GitHub Desktop.
Service Contract
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