Click or drag to resize

InstanceSharing Enumeration

Determines whether instances are shared within a lifetime scope.

Namespace:  Autofac.Core
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public enum InstanceSharing
Members
  Member nameValueDescription
None0 Each request for an instance will return a new object.
Shared1 Each request for an instance will return the same object.
See Also