There is general service interface that been implemented by multi technologies.
For example, I have 2 interfaces:
- IGenralService
- IWcfService that inherit from IGenralService.
The base interface:
public interface IGenralService
{
bool Login(string username, string password);
}
And the wcf service:
public interface IWcfService : IGenralService
{
[OperationContract(IsOneWay = false)]
[FaultContract(typeof(Exception))]
void DoSomething();
}
The IWcfService is specific for Wcf and need "OperationContract" attribute for wcf methods. The "Login" method does not including the attribute "OperationContract".
Is there any way to add attribute to the inherent method?