Skip to main content
ddfra's user avatar
ddfra's user avatar
ddfra's user avatar
ddfra
  • Member for 4 years, 5 months
  • Last seen more than 1 year ago
comment
How do Singletons differ from Static variables?
@PhilipKendall the dependency injection system will take care always serving the same instance of the specified implementation. This makes it a singleton ( services.AddSingleton<INameService, NameService>(); )
answered
Loading…
awarded
Loading…