internal static EventTypeInternal GetEventTypeInternal(Runtime.Events.EventType eventType) { EventTypeInternal eventTypeInternal = EventTypeInternal.None; if ((eventType & EventType.ItemAdded) != 0) { eventTypeInternal |= EventTypeInternal.ItemAdded; } if ((eventType & EventType.ItemUpdated) != 0) { eventTypeInternal |= EventTypeInternal.ItemUpdated; } if ((eventType & EventType.ItemRemoved) != 0) { eventTypeInternal |= EventTypeInternal.ItemRemoved; } return(eventTypeInternal); }
public void OnPollNotify(string client, short callbackId, Runtime.Events.EventType eventType) { throw new NotImplementedException(); }
public override void UnRegisterCacheNotification(string key, CacheDataNotificationCallback callback, Runtime.Events.EventType eventType) { string exceptionMessage = null; try { _webCache.UnRegisterCacheNotification(key, callback, eventType); } catch (Exception e) { exceptionMessage = e.Message; throw; } finally { try { if (_debugConfigurations.IsInLoggingInterval()) { APILogItem logItem = new APILogItem(); logItem.Signature = "UnRegisterCacheNotification(string key, CacheDataNotificationCallback callback, Runtime.Events.EventType eventType)"; logItem.Key = key; logItem.ExceptionMessage = exceptionMessage; _apiLogger.Log(logItem); } } catch (Exception) { } } }
internal override CacheEventDescriptor RegisterCacheNotificationInternal(string key, CacheDataNotificationCallback callback, Runtime.Events.EventType eventType, Runtime.Events.EventDataFilter datafilter, bool notifyOnItemExpiration) { return(_webCache.RegisterCacheNotificationInternal(key, callback, eventType, datafilter, notifyOnItemExpiration)); }
internal override CacheEventDescriptor RegisterCacheNotification(CacheDataNotificationCallback cacheDataNotificationCallback, Runtime.Events.EventType eventType, Runtime.Events.EventDataFilter datafilter) { CacheEventDescriptor result = null; string exceptionMessage = null; try { result = _webCache.RegisterCacheNotification(cacheDataNotificationCallback, eventType, datafilter); } catch (Exception e) { exceptionMessage = e.Message; throw; } finally { try { if (_debugConfigurations.IsInLoggingInterval()) { APILogItem logItem = new APILogItem(); logItem.Signature = "RegisterCacheNotification(string key, CacheDataNotificationCallback selectiveCacheDataNotificationCallback, Runtime.Events.EventType eventType, Runtime.Events.EventDataFilter datafilter)"; logItem.ExceptionMessage = exceptionMessage; _apiLogger.Log(logItem); } } catch (Exception) { } } return(result); }
public override void RegisterCacheNotification(string[] keys, CacheDataNotificationCallback callback, Runtime.Events.EventType eventType) { string exceptionMessage = null; try { _webCache.RegisterCacheNotificationInternal(keys, callback, eventType, EventDataFilter.None); } catch (Exception e) { exceptionMessage = e.Message; throw; } finally { try { if (_debugConfigurations.IsInLoggingInterval()) { APILogItem logItem = new APILogItem(); logItem.Signature = "RegisterCacheNotification(string[] keys, CacheDataNotificationCallback callback, Runtime.Events.EventType eventType)"; logItem.ExceptionMessage = exceptionMessage; logItem.NoOfKeys = keys.Length; _apiLogger.Log(logItem); } } catch (Exception) { } } }