1
0
mirror of synced 2024-11-16 14:53:50 +00:00

Fixed warning SimpleInjector: RegisterSingleton(instance) is obsolete -> use RegisterInstance

- please review -
This commit is contained in:
Hans Mulder 2018-06-11 09:59:16 +02:00
parent 93dcd4bcc1
commit 458f1ab566

View File

@ -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