I\'m new to Autofac (not to DI). Here is the situation:
I have these interfaces:
public interface IQuery
If you have a single concrete generic type, and don't want the scanning overhead and improve the startup performance, you can register as below:
builder.RegisterGeneric(typeof(ConcreteGenericType<>)).As(typeof(IServiceType<>);