Example #1
0
        protected override void Start(AsciiTcpConnection connection)
        {
            _connection = connection;
            AsciiSendLineGetLineUnit setGroupUnit = new AsciiSendLineGetLineUnit("group " + _group.Name);

            setGroupUnit.Finished += new AsciiProtocolUnitDelegate(setGroupUnit_Finished);
            StartUnit(setGroupUnit, connection);
        }
Example #2
0
 protected override void Start(AsciiTcpConnection connection)
 {
     _connection = connection;
     Core.UIManager.GetStatusWriter(_server.Name, StatusPane.Network).ShowStatus(
         "Posting article to " + _server.DisplayName);
     Core.ResourceAP.QueueJob(_invokedByUser ? JobPriority.Immediate : JobPriority.BelowNormal,
                              "Preparing articles for posting", new MethodInvoker(PreparePosting));
 }
Example #3
0
        protected override void Start(AsciiTcpConnection connection)
        {
            _connection = connection;
            AsciiSendLineGetLineUnit sendUsernameUnit =
                new AsciiSendLineGetLineUnit("authinfo user " + _username);

            sendUsernameUnit.Finished += new AsciiProtocolUnitDelegate(sendUsernameUnit_Finished);
            StartUnit(sendUsernameUnit, connection);
        }
Example #4
0
 protected override void Start(AsciiTcpConnection connection)
 {
     _connection     = connection;
     _enumGroupsUnit = new AsciiSendLineAndApplyMethodUnit(
         _nntpCmd, ".\r\n", new LineDelegate(ProcessGroupLine));
     _enumGroupsUnit.Finished += new AsciiProtocolUnitDelegate(enumGroupsUnit_Finished);
     _startUpdateDate          = DateTime.Now;
     StartUnit(_enumGroupsUnit, connection);
 }
Example #5
0
 protected override void Start(AsciiTcpConnection connection)
 {
     _connection = connection;
     if (_setGroup)
     {
         NntpSetGroupUnit setGroupUnit = new NntpSetGroupUnit(new NewsgroupResource(_group));
         setGroupUnit.Finished += new AsciiProtocolUnitDelegate(setGroupUnit_Finished);
         StartUnit(setGroupUnit, connection);
     }
     else
     {
         GetArticleById();
     }
 }
Example #6
0
 protected override void Start(AsciiTcpConnection connection)
 {
     Core.UIManager.GetStatusWriter(typeof(NntpDownloadHeadersUnitBase),
                                    StatusPane.Network).ShowStatus("Downloading headers from " + _group.DisplayName + "...");
     _connection = connection;
     if (!_group.IsSubscribed)
     {
         FireFinished();
     }
     else
     {
         NntpSetGroupUnit downloadHeadersSetGroupUnit = new NntpSetGroupUnit(_group);
         downloadHeadersSetGroupUnit.Finished += new AsciiProtocolUnitDelegate(downloadHeadersSetGroupUnit_Finished);
         StartUnit(downloadHeadersSetGroupUnit, connection);
     }
 }
Example #7
0
 protected override void Start(AsciiTcpConnection connection)
 {
     _connection = connection;
     _groupIndex = 0;
     Core.ResourceAP.QueueJob(new MethodInvoker(StartNextGroupMarshalled));
 }
Example #8
0
 protected override void Start(AsciiTcpConnection connection)
 {
     _connection = connection;
     _groupIndex = 0;
     StartNextGroup();
 }