Example #1
0
        public static void ClearQueuePoolVarnishx(this string clearUrl, string domain, string VarnishxIP = "")
        {
            VarnishxUrl invokeMessage = new VarnishxUrl {
                VarnishxIP = VarnishxIP,
                Domain     = domain,
                ClearUrl   = clearUrl
            };

            _QueuePoolHelper.EnqueueInvokePool(invokeMessage);
        }
Example #2
0
 private static void _QueuePoolHelper_SendMessage(object sender, QueuePoolEventArgs <VarnishxUrl> e)
 {
     try
     {
         VarnishxUrl message = e.Message;
         if (message != null)
         {
             message.ClearUrl.ClearVarnishx(message.Domain, message.VarnishxIP);
         }
     }
     catch (Exception)
     {
     }
 }