container icon indicating copy to clipboard operation
container copied to clipboard

Replace CreateLifetimePolicy with ICloneable on LifetimeManager

Open ENikS opened this issue 6 years ago • 0 comments

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.

ENikS avatar Jun 10 '20 18:06 ENikS