Example #1
0
        public IrcConnection()
        {
            this._SendBuffer[(object)Priority.High]        = (object)System.Collections.Queue.Synchronized(new System.Collections.Queue());
            this._SendBuffer[(object)Priority.AboveMedium] = (object)System.Collections.Queue.Synchronized(new System.Collections.Queue());
            this._SendBuffer[(object)Priority.Medium]      = (object)System.Collections.Queue.Synchronized(new System.Collections.Queue());
            this._SendBuffer[(object)Priority.BelowMedium] = (object)System.Collections.Queue.Synchronized(new System.Collections.Queue());
            this._SendBuffer[(object)Priority.Low]         = (object)System.Collections.Queue.Synchronized(new System.Collections.Queue());
            this.OnReadLine        += new ReadLineEventHandler(this._SimpleParser);
            this.OnConnectionError += new EventHandler(this._OnConnectionError);
            this._ReadThread        = new IrcConnection.ReadThread(this);
            this._WriteThread       = new IrcConnection.WriteThread(this);
            this._IdleWorkerThread  = new IrcConnection.IdleWorkerThread(this);
            Assembly                 assembly        = Assembly.GetAssembly(this.GetType());
            AssemblyName             name            = assembly.GetName(false);
            AssemblyProductAttribute customAttribute = (AssemblyProductAttribute)assembly.GetCustomAttributes(typeof(AssemblyProductAttribute), false)[0];

            this._VersionNumber = name.Version.ToString();
            this._VersionString = customAttribute.Product + " " + this._VersionNumber;
        }