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
Public Enumeration InstanceSharing
Members
| Member name | Value | Description |
---|
| None | 0 |
Each request for an instance will return a new object.
|
| Shared | 1 |
Each request for an instance will return the same object.
|
See Also