예제 #1
0
        public override void RegisterCacheNotification(string key, CacheDataNotificationCallback selectiveCacheDataNotificationCallback, Runtime.Events.EventType eventType, Runtime.Events.EventDataFilter datafilter)
        {
            string exceptionMessage = null;

            try
            {
                _webCache.RegisterCacheNotification(key, selectiveCacheDataNotificationCallback, 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;
                        logItem.Key = key;
                        _apiLogger.Log(logItem);
                    }
                }
                catch (Exception)
                { }
            }
        }
예제 #2
0
 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));
 }
예제 #3
0
        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);
        }