Ejemplo n.º 1
0
 public void DataCacheItemCallBackHandler(string cacheName, string regionName, string key,
                                          DataCacheItemVersion version, DataCacheOperations cacheOperation, DataCacheNotificationDescriptor nd)
 {
     try
     {
         string result = string.Format("Time: {0} CacheName: {1}  Region {2} Key: {3} DataCacheOperation: {4}", DateTime.Now.ToLongTimeString(),
                                       cacheName, regionName, key, cacheOperation.ToString());
         rtbMontiorCache.Invoke((MethodInvoker) delegate { rtbMontiorCache.AppendText("\r\n" + result); });
     }
     catch (Exception ex)
     {
         HandleException(ex);
     }
 }