Пример #1
0
        public void DoAuthenticate(string username, string password)
        {
            NntpAuthenticateUnit authenticateUnit = new NntpAuthenticateUnit(username, password);

            authenticateUnit.Finished += new AsciiProtocolUnitDelegate(AuthenticateFinished);
            StartUnit(Int32.MaxValue, authenticateUnit);
        }
Пример #2
0
        private void AuthenticateFinished(AsciiProtocolUnit unit)
        {
            NntpAuthenticateUnit authenticateUnit = (NntpAuthenticateUnit)unit;

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