コード例 #1
0
ファイル: NntpConnections.cs プロジェクト: mo5h/omeo
        public void DoAuthenticate(string username, string password)
        {
            NntpAuthenticateUnit authenticateUnit = new NntpAuthenticateUnit(username, password);

            authenticateUnit.Finished += new AsciiProtocolUnitDelegate(AuthenticateFinished);
            StartUnit(Int32.MaxValue, authenticateUnit);
        }
コード例 #2
0
ファイル: NntpConnections.cs プロジェクト: mo5h/omeo
        private void AuthenticateFinished(AsciiProtocolUnit unit)
        {
            NntpAuthenticateUnit authenticateUnit = (NntpAuthenticateUnit)unit;

            if (!authenticateUnit.Succeeded)
            {
                SetError(authenticateUnit.ResponseLine);
            }
        }