Created
October 18, 2014 13:51
-
-
Save rahulsahay19/9f41f47be4438645fdbf to your computer and use it in GitHub Desktop.
Service Behaviour
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
[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