7 lines
156 B
C#
7 lines
156 B
C#
|
|
||
|
// With serviceType:
|
||
|
collection.AddSingleton<ISingletonService, SingletonService>();
|
||
|
|
||
|
// Without serviceType:
|
||
|
collection.AddSingleton<SingletonService>();
|