ServiceScope
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.0.0.0)
EXPERIMENTAL: Specifies the scope of services added using AddService.
- C#
- VB.NET
public enum ServiceScope : Enum
Public Enum ServiceScope As [Enum]
Fields
| Name | Description |
|---|---|
| Global | A single static instance of the service is available to all sessions. |
| Session | The registered instance is available only to the current sessions. A new session should create and register a new instance. |
| Transient | A new instance of the service is created every time it's needed and automatically disposed at the end of the request. |
Used By
| Name | Description |
|---|---|
| Wisej.Web.Application.AddService.AddService | EXPERIMENTAL: Adds a scoped service to the service container. |