A singleton service instance is created only once during entire application lifetime, common across all requests.
services.AddSingleton<IMyClass, MyClass>();
A singleton service instance is created only once during entire application lifetime, common across all requests.
services.AddSingleton<IMyClass, MyClass>();
A singleton service instance is created only once during entire application lifetime, common across all requests.
services.AddSingleton<IMyClass, MyClass>();