API
AddScoped
Registers a service reused within a scope.
Formal Syntax & Structure
csharp syntaxcsharp
AddScoped<Session>()Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.AddScoped<Session>()Registers a service reused within a scope.
AddScoped<Session>()// Documentary fragment; see linked lesson for context.AddScoped<Session>()