У меня есть базовый интерфейс IBaseReport
Код: Выделить всё
public interface IBaseReport
{
Task GenerateReportAsync(string input);
}
Код: Выделить всё
public interface IChildReport1:IBaseReport
{
}
public interface IChildReport2:IBaseReport
{
}
Код: Выделить всё
public class ChildReport1:IChildReport1
{
}
public class ChildReport2:IChildReport2
{
}
Код: Выделить всё
builder.RegisterType().As().InstancePerRequest()
Код: Выделить всё
builder.RegisterType().As().As().InstancePerRequest()
"'IChildReport1' не содержит определения для
'GenerateReportAsync'",
Я использую версию autofac
7.1.0
Версия .Net
4.7.2
Будем благодарны за любую помощь.
Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/793 ... -interface