コード例 #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
ファイル: Connection.cs プロジェクト: dab85/irc-sharp
 /// <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;
 }