示例#1
0
        /// <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);
            }
        }
示例#2
0
 protected virtual void Dispose(bool managed)
 {
     if (!managed)
     {
         return;
     }
     this.disposed = true;
     this.incEventQueue.Dispose();
     this.log            = null;
     this.reportDelegate = null;
 }