public void RemoveFromLifecycle(Type pluginType, Instance instance) { var lifecycle = _lifecycles.DetermineLifecycle(pluginType, instance); if (lifecycle is ObjectLifecycle) { return; } lifecycle.FindCache(_lifecycles).Eject(pluginType, instance); }
public void RemoveFromLifecycle(Type pluginType, Instance instance) { _lifecycles.DetermineLifecycle(pluginType, instance).FindCache(_lifecycles).Eject(pluginType, instance); }