Fixed warning SimpleInjector: RegisterSingleton(instance) is obsolete -> use RegisterInstance
- please review -
This commit is contained in:
parent
93dcd4bcc1
commit
458f1ab566
@ -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