Beispiel #1
0
 private void ProcessNotification(ServerItemElement server, string objectCacheName, string key)
 {
     var thread = new Thread(() =>
     {
         try
         {
             System.Threading.Thread.Sleep(server.Delay * 1000);
             SendRequest(server.Url, objectCacheName, key);
         }
         catch (Exception e)
         {
             Kooboo.Common.Logging.Logger.Error(e.Message, e);
         }
     });
     thread.Start();
 }
        private void ProcessNotification(ServerItemElement server, string objectCacheName, string key)
        {
            var thread = new Thread(() =>
            {
                try
                {
                    System.Threading.Thread.Sleep(server.Delay * 1000);
                    SendRequest(server.Url, objectCacheName, key);
                }
                catch (Exception e)
                {
                    Kooboo.Common.Logging.Logger.Error(e.Message, e);
                }
            });

            thread.Start();
        }