I have a class called Config in my WebAPI project which has one constructor injection of a service.
public class Config: IConfig
{
protected readonly IConfigService _configService;
public Config(IConfigService configService)
{
this._configService = configService;
}
}
I need to use this Config class in a generic handler used for image upload. Can anyone help me to register this Config class in the Startup class and resolve it in Handler class. I did try it in normal way, but getting no parameterless constructor found error.