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: 4.9.1+831973f4d02fbc619921dfaa8ac0c536f60ae7a3
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