Autofac help in registering the types and consuming the objects.

9 views
Skip to the first unread message

Ganesh Krishnamurthy

unread,
30 Nov 2014, 8:41:31 pm30/11/14
to aut...@googlegroups.com
Hello,

below is my scenario

abstract class A<T> 
{
       private IClassA<T> repo
A(IClassA<T> repo)
}

class B : A<ClassC>
{
B(IClassA<ClassC> repo)
:base(repo)
{
}
}

class D : A<classE>
{
D(IClassA<ClassE> repo)
:base(repo)
{
}
}

ClassC, ClassE is actually the entity

When used autofac to configure it gives circular dependency, or says ClassC not defined. ClassA will/can implement more interfaces, want an generic implementation for this situation


Thanks
Ganesh K


Travis Illig

unread,
30 Nov 2014, 11:32:27 pm30/11/14
to aut...@googlegroups.com
Can you post your registration code as well as the resolve code? That will help us better to see what you're trying to do.
Reply all
Reply to author
Forward
0 new messages