private ICompiledLifestyle GetLifestyle(Type activationType) { if (Lifestyle == null) { return(null); } var lifestyle = _lifestyles.GetValueOrDefault(activationType); if (lifestyle != null) { return(lifestyle); } lifestyle = Lifestyle.Clone(); return(ImmutableHashTree.ThreadSafeAdd(ref _lifestyles, activationType, lifestyle)); }