Пример #1
0
        // The events of this class in the file ConnectionEvents.cs

        #region Constructors
        /// <summary>
        /// Creates a new instance of the Connection.
        /// </summary>
        public Connection() : base(new ServerConnection())
        {
            identd     = new IdentificationServer(base.CurrentConnection, this);
            channels   = new ChannelContainer(base.CurrentConnection);
            users      = new UserContainer(base.CurrentConnection);
            dcc        = new DCC(base.CurrentConnection, this);
            serverInfo = new ServerInfo(base.CurrentConnection, this);
            base.CurrentConnection.Owner = this;
        }
Пример #2
0
 /// <summary>
 /// Creates a new instance of the Connection.
 /// </summary>
 public Connection()
     : base(new ServerConnection())
 {
     identd = new IdentificationServer(base.CurrentConnection, this);
     channels = new ChannelContainer(base.CurrentConnection);
     users = new UserContainer(base.CurrentConnection);
     dcc = new DCC(base.CurrentConnection, this);
     serverInfo = new ServerInfo(base.CurrentConnection, this);
     base.CurrentConnection.Owner = this;
 }