public void ClearQueue(string QueueName) { try { TrackQueue queue = (TrackQueue)ResourceManager.GetResource(QueueName); queue.Clear(); } catch (Exception ex) { LOG.Error(string.Format("QueueService清空队列出错:{0},位置{1}", QueueName, ex.Message)); } }
/// <summary> /// Clears all items from the Track and Engage request queues, anything not already sent to the Mixpanel /// API will no longer be sent /// </summary> public static void Clear() { TrackQueue.Clear(); EngageQueue.Clear(); }