internal Burden(IHandler handler, bool requiresDecommission, bool trackedExternally)
{
this.handler = handler;
TrackedExternally = trackedExternally;
if (requiresDecommission)
{
decommission = Decommission.Yes;
}
else if (Model.Lifecycle.HasDecommissionConcerns)
{
if (Model.Implementation == typeof(LateBoundComponent) && Model.Lifecycle.DecommissionConcerns.All(IsLateBound))
{
decommission = Decommission.LateBound;
}
else
{
decommission = Decommission.Yes;
}
}
}