Hi,
I am trying to inject my Repository (user) into the following code, in the process of doing so, I keep experiencing an error in the global.aspx of the application. Error --
" API_09Oct.BasicAuthMessageHandler' does not contain a constructor that takes 0 arguments"
public class BasicAuthMessageHandler : DelegatingHandler
{
private const string BasicAuthResponseHeader = "WWW-Authenticate";
private const string BasicAuthResponseHeaderValue = "Basic";
//[Inject]
//public iUser Repository { get; set; }
private readonly iUser Repository;
//public BasicAuthMessageHandler()
// : this(new User())
// {
// }
public BasicAuthMessageHandler(iUser logger)
{
Repository = logger;
}
...
Go to the complete details ...