protected override void Start(AsciiTcpConnection connection) { _connection = connection; AsciiSendLineGetLineUnit setGroupUnit = new AsciiSendLineGetLineUnit("group " + _group.Name); setGroupUnit.Finished += new AsciiProtocolUnitDelegate(setGroupUnit_Finished); StartUnit(setGroupUnit, connection); }
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)); }
protected override void Start(AsciiTcpConnection connection) { _connection = connection; AsciiSendLineGetLineUnit sendUsernameUnit = new AsciiSendLineGetLineUnit("authinfo user " + _username); sendUsernameUnit.Finished += new AsciiProtocolUnitDelegate(sendUsernameUnit_Finished); StartUnit(sendUsernameUnit, connection); }
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); }
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(); } }
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); } }
protected override void Start(AsciiTcpConnection connection) { _connection = connection; _groupIndex = 0; Core.ResourceAP.QueueJob(new MethodInvoker(StartNextGroupMarshalled)); }
protected override void Start(AsciiTcpConnection connection) { _connection = connection; _groupIndex = 0; StartNextGroup(); }