0
Answer

How to implement Authentication at service level in WCF

Neeraj  Kumar

Neeraj Kumar

10y
895
1
Can someone assit me how to implement Authentication at service level in WCF ?
In below example i want to apply Authentication on class "User" and method "Test()"
 
[ServiceContract]
public interface IUser
{
[OpeartionContract]
string Test();
}
 
//User.svc file
Public class User : IUser
{
public string Test()
{return "";}
 
}
 
If possible please suggest any exmaple.