Kooboo.Commerce.Categories.CategoryTree.Remove C# (CSharp) Method

Remove() public static method

public static Remove ( string instance ) : void
instance string
return void
        public static void Remove(string instance)
        {
            Require.NotNullOrEmpty(instance, "instance");

            CategoryTree cache;
            _caches.TryRemove(instance, out cache);
        }

Usage Example

示例#1
0
 public void Handle(CategoryDeleted @event, CommerceInstance instance)
 {
     CategoryTree.Remove(CommerceInstance.Current.Name);
 }