November Happy Hour will be moved to Thursday December 5th.

Enum ServiceInstanceScope

Scope of service instances.

Namespace: EPiServer.ServiceLocation
Assembly: EPiServer.Framework.dll
Version: 11.20.7
Syntax
public enum ServiceInstanceScope

Fields

Name Description
HttpContext

New instance per request.

HttpSession

New instance per http session.

Hybrid

New instance per thread or request.

HybridHttpSession

Hybrid instance per session.

PerRequest

New instance per request.

Singleton

One instance per container.

ThreadLocal

One instance per thread.

Transient

New instance per usage

Unique

New instance per usage

Extension Methods