public static void ClearQueuePoolVarnishx(this string clearUrl, string domain, string VarnishxIP = "") { VarnishxUrl invokeMessage = new VarnishxUrl { VarnishxIP = VarnishxIP, Domain = domain, ClearUrl = clearUrl }; _QueuePoolHelper.EnqueueInvokePool(invokeMessage); }
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) { } }