Fixed warning SimpleInjector: RegisterSingleton(instance) is obsolete -> use RegisterInstance
- please review -
This commit is contained in:
parent
93e19f842a
commit
6f3766aed4
@ -45,7 +45,7 @@ namespace Tapeti.SimpleInjector
|
||||
public void RegisterDefaultSingleton<TService>(TService instance) where TService : class
|
||||
{
|
||||
if (CanRegisterDefault<TService>())
|
||||
container.RegisterSingleton(instance);
|
||||
container.RegisterInstance(instance);
|
||||
}
|
||||
|
||||
public void RegisterDefaultSingleton<TService>(Func<TService> factory) where TService : class
|
||||
|
Loading…
Reference in New Issue
Block a user