public DataCacheNotificationDescriptor AddItemLevelCallback(string key, DataCacheOperations filter, DataCacheNotificationCallback callBack, string region) { return(_cacheHandler.AddItemLevelCallback(key, filter, callBack, region)); }
public DataCacheNotificationDescriptor AddCacheLevelCallback(DataCacheOperations filter, DataCacheNotificationCallback callBack) { return(_cacheHandler.AddCacheLevelCallback(filter, callBack)); }
public DataCacheNotificationDescriptor AddRegionLevelCallback(string region, DataCacheOperations filter, DataCacheNotificationCallback callBack) { return(_cacheHandler.AddRegionLevelCallback(region, filter, callBack)); }
private static bool Validate(CallbackType type, string[] keyRegion, string key, string region, DataCacheNotificationCallback callBack) { if (callBack == null) { return(false); } else if (type == CallbackType.CacheLevelCallback) { return(true); } else if (type == CallbackType.RegionSpecificCallback && region == keyRegion[1]) { return(true); } else if (type == CallbackType.ItemSpecificCallback && key == keyRegion[0]) { return(true); } else if (type == CallbackType.RegionSpecificItemCallback && key == keyRegion[0] && region == keyRegion[1]) { return(true); } else { return(false); } }