7 lines
141 B
C#
7 lines
141 B
C#
|
|
||
|
// With serviceType:
|
||
|
collection.AddScoped<IScopedService, ScopedService>();
|
||
|
|
||
|
// Without serviceType:
|
||
|
collection.AddScoped<ScopedService>();
|