container
container copied to clipboard
Replace CreateLifetimePolicy with ICloneable on LifetimeManager
Description
LifetimeManager uses method CreateLifetimePolicy for creation of clones.
Problem
Unity container departed from policy based operation. This legacy method is no longer describes what it is doing concisely.
Solution
.NET Framework recommends using ICloneable interface for creating clones.
Impact
Minimal. The protected virtual method OnCreateLifetimeManager() will still be used to perform the cloning.