Click or drag to resize
DigitalRuneCreationPolicy Enumeration
Specifies when and how a service will be instantiated.

Namespace: DigitalRune.ServiceLocation
Assembly: DigitalRune.ServiceLocation (in DigitalRune.ServiceLocation.dll) Version: 1.3.0.0 (1.3.0.13596)
Syntax
public enum CreationPolicy
Members
  Member nameValueDescription
Shared0 Specifies that a single shared instance of the associated service will be created by the ServiceContainer and shared by all requests. The service instance is also reused by all child containers.
LocalShared1 Specifies that a single instance of the associated service will be created by the ServiceContainer and shared locally (per container) by all requests. The service instance is created per container and is not reused by child containers.
NonShared2 Specifies that a new non-shared instance of the associated service will be created by the ServiceContainer for every request.
See Also