Open Alan1616 opened 2 years ago
I want to do the following
scan => scan .FromAssemblies(assembly) .AddClasses(classes => classes.AssignableTo<IScopedService>()) .UsingRegistrationStrategy(RegistrationStrategy.Throw) .AsSelfWithInterfaces() .WithScopedLifetime()
But it would always throw as i have many IScopedService in my assembly. Let's say i have class A : InterfaceA, IScopedService and class B: InterfaceA, IScopedService only then it should throw. Is this possible with scrutor?
Hi @Alan1616! 👋🏻
Sorry for the long response time! I'm not sure what your desired scenario is here. Do you want it to throw or not? 😅
I want to do the following
But it would always throw as i have many IScopedService in my assembly. Let's say i have class A : InterfaceA, IScopedService and class B: InterfaceA, IScopedService only then it should throw. Is this possible with scrutor?