How to implement an additional non-wcf service contract interface in a WCF service contract interface implementation

41 views Asked by At

I'm creating a WCF service:

[ServiceContract]
public interface IContractManagementServices
{    
    ...
}

and i want the contract implementation to also implement another interface:

public interface ILogin
{
    bool GetLoginCredential(String LoginID, String Password);
}

For example:

public class ContractManagementServices : IContractManagementServices, ILogin
{
    ...
}

But I am getting an error.

1

There are 1 answers

0
Pankaj Nema On BEST ANSWER

Try this code

    private ILogin _businessLogic {get; set;}
    public Service()
    {
        if (_businessLogic == null) { _businessLogic = new Login(); }
    }

I think it will solve your problem.