public static void Remove(string instance) { Require.NotNullOrEmpty(instance, "instance"); CategoryTree cache; _caches.TryRemove(instance, out cache); }
public void Handle(CategoryDeleted @event, CommerceInstance instance) { CategoryTree.Remove(CommerceInstance.Current.Name); }