Skip to main content
Version: 3.5

ServiceScope

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.0.0.0)

EXPERIMENTAL: Specifies the scope of services added using AddService.

public enum ServiceScope : Enum

Fields​

NameDescription
GlobalA single static instance of the service is available to all sessions.
SessionThe registered instance is available only to the current sessions. A new session should create and register a new instance.
TransientA new instance of the service is created every time it's needed and automatically disposed at the end of the request.

Used By​

NameDescription
Wisej.Web.Application.AddService.AddServiceEXPERIMENTAL: Adds a scoped service to the service container.