SetConnectionType() public method

public SetConnectionType ( ConnectionType ctype ) : void
ctype ConnectionType
return void
コード例 #1
0
ファイル: IrcBase.cs プロジェクト: corinne1405/Schumix2
        public void NewServer(string ServerName, int ServerId, string Host, int Port)
        {
            lock (Lock)
            {
                var nw = new Network(ServerName.ToLower(), ServerId, Host, Port);

                if (IRCConfig.List[ServerName].Ssl)
                {
                    nw.SetConnectionType(ConnectionType.Ssl);
                }

                _networks.Add(ServerName, nw);
                _networks[ServerName.ToLower()].InitializeIgnoreCommand();
            }
        }
コード例 #2
0
ファイル: IrcBase.cs プロジェクト: Schumix/Schumix2
        public void NewServer(string ServerName, int ServerId, string Host, int Port)
        {
            lock(Lock)
            {
                var nw = new Network(ServerName.ToLower(), ServerId, Host, Port);

                if(IRCConfig.List[ServerName].Ssl)
                    nw.SetConnectionType(ConnectionType.Ssl);

                _networks.Add(ServerName, nw);
                _networks[ServerName.ToLower()].InitializeIgnoreCommand();
            }
        }