protected void UpdatePage() { // Add minimun 10 seconds to allow for slight differences or the refreshed page might be the same. expire += new TimeSpan(0, 0, 10); lock (pending) { // Remove from updates list. pending.Remove(this); updateing.Remove(this); } // Send from new thread to prevent delays and deadlocking with this thread if the event handler calls back to us. System.Diagnostics.Debug.WriteLine("Starting thread ESI->PageUpdated " + url); new Thread(() => PageUpdated?.Invoke(this)).Start(); }
internal virtual void OnPagesUpdated(WikiPageUpdateEventArgs e) { PageUpdated?.Invoke(this, e); }