Are you sure your bootloader is being used? It is not publicly available, so itโs quite possible to use the built-in in it, where the default convention is a multiple instance for non-interface dependencies.
As with Daniel, you also don't need AsSingleton, if you are registering an instance, you can also simply:
container.Register<CertificateProvider>().AsSingleton();
Therefore, it is created only when necessary.
source share