estoyEstoy siguiendo la arquitectura Onion de Jeffrey Palermo, tengo 3 capas:
An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = DummyController (ReflectionActivator), Services = [Gallo.Api.Controllers.DummyController], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = DummyService (ReflectionActivator), Services = [Gallo.Core.Services.IDummyService], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = Repository1 (ReflectionActivator), Services = [Gallo.Core.Repositories.IRepository
1[[Gallo.Infrastructure.Data.Estados, Gallo.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = OwnedByLifetimeScope ---> None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Gallo.Infrastructure.Repositories.Repository`1[Gallo.Infrastructure.Data.Estados]' can be invoked with the available services and parameters: Cannot resolve parameter 'Gallo.Infrastructure.Data.Context context' of constructor 'Void .ctor(Gallo.Infrastructure.Data.Context)'. (See inner exception for details.) (See inner exception for details.) (See inner exception for details.)
An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = DummyController (ReflectionActivator), Services = [Gallo.Api.Controllers.DummyController], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = DummyService (ReflectionActivator), Services = [Gallo.Core.Services.IDummyService], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = Repository
1 (ReflectionActivator), Services = [Gallo.Core.Repositories.IRepository
1[[Gallo.Infrastructure.Data.Estados, Gallo.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = OwnedByLifetimeScope ---> None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Gallo.Infrastructure.Repositories.Repository`1[Gallo.Infrastructure.Data.Estados]' can be invoked with the available services and parameters: Cannot resolve parameter 'Gallo.Infrastructure.Data.Context context' of constructor 'Void .ctor(Gallo.Infrastructure.Data.Context)'. (See inner exception for details.) (See inner exception for details.) (See inner exception for details.)