public void RegisterOpenGeneric(Type serviceType, Type concreteType) { AutofacBuilder.RegisterGeneric(concreteType).As(serviceType).ExternallyOwned(); }