/// <summary> /// Initializes this queue helper. /// </summary> /// <param name="reportDelegate">Method to handle incoming chat events.</param> public QueueHelper(QueueHelperDelegate <T> reportDelegate = null, SimpleLogger.Logger logger = null) { this.log = logger; if (reportDelegate != null) { this.SetReportDelegate(reportDelegate); } }
protected virtual void Dispose(bool managed) { if (!managed) { return; } this.disposed = true; this.incEventQueue.Dispose(); this.log = null; this.reportDelegate = null; }