Skip to content

Instantly share code, notes, and snippets.

@rahulsahay19
Created October 18, 2014 13:51
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/9f41f47be4438645fdbf to your computer and use it in GitHub Desktop.
Save rahulsahay19/9f41f47be4438645fdbf to your computer and use it in GitHub Desktop.
Service Behaviour
[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single,
ConcurrencyMode = ConcurrencyMode.Multiple)]
public class WCFDemo : IEmployee
{
[OperationBehavior(Impersonation = ImpersonationOption.Required)]
public string PrintEmployee(Employee empl)
{
return string.Format("Hello Employee {0} {1}. Your Designation is {2}", empl.Fname, empl.Lname, empl.Desig);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment