本文整理汇总了C#中WikiFunctions.API.AsyncApiEdit类的典型用法代码示例。如果您正苦于以下问题:C# AsyncApiEdit类的具体用法?C# AsyncApiEdit怎么用?C# AsyncApiEdit使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AsyncApiEdit类属于WikiFunctions.API命名空间,在下文中一共展示了AsyncApiEdit类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: LogUploader
public LogUploader(AsyncApiEdit e)
{
BotTag = "|}<!--/bottag-->"; // doing it this way OUGHT to allow inherited classes to override
TableHeaderUserName = "! Job !! Category !! Page # !! Performed By !! Date";
TableHeaderNoUserName = "! Job !! Category !! Page # !! Date";
editor = e.Clone();
}
开发者ID:svick,项目名称:AWB,代码行数:8,代码来源:LogUploader.cs
示例2: Init
internal void Init(AsyncApiEdit e, Label ETALabel, PluginSettingsControl.Stats Stats)
{
if (!TimerEnabled) {
ResetVars();
mETALabel = ETALabel;
TimerEnabled = true;
mStats = Stats;
mStats.SkipMisc += mStats_SkipMisc;
Timer1_Tick(null, null);
}
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:14,代码来源:TimerStats.cs
示例3: Init
internal void Init(AsyncApiEdit e, Label etaLabel, PluginSettingsControl.Stats stats)
{
if (!TimerEnabled)
{
ResetVars();
_etaLabel = etaLabel;
TimerEnabled = true;
_stats = stats;
_stats.SkipMisc += StatsSkipMisc;
Timer1_Tick(null, null);
}
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:15,代码来源:TimerStats.cs
示例4: CreateEditor
private AsyncApiEdit CreateEditor(string url, bool php5)
{
AsyncApiEdit edit = new AsyncApiEdit(url, parentControl, php5)
{
NewMessageThrows = false
};
edit.OpenComplete += OnOpenComplete;
edit.SaveComplete += OnSaveComplete;
edit.PreviewComplete += OnPreviewComplete;
edit.ExceptionCaught += OnExceptionCaught;
edit.MaxlagExceeded += OnMaxlagExceeded;
edit.LoggedOff += OnLoggedOff;
edit.StateChanged += OnStateChanged;
edit.Aborted += OnAborted;
return edit;
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:18,代码来源:Session.cs
示例5: OnStateChanged
void OnStateChanged(AsyncApiEdit sender)
{
if (StateChanged != null) StateChanged(sender);
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:4,代码来源:Session.cs
示例6: OnMaxlagExceeded
void OnMaxlagExceeded(AsyncApiEdit sender, int maxlag, int retryAfter)
{
if (MaxlagExceeded != null) MaxlagExceeded(sender, maxlag, retryAfter);
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:4,代码来源:Session.cs
示例7: OnLoggedOff
void OnLoggedOff(AsyncApiEdit sender)
{
if (LoggedOff != null) LoggedOff(sender);
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:4,代码来源:Session.cs
示例8: OnPreviewComplete
void OnPreviewComplete(AsyncApiEdit sender, string result)
{
if (PreviewComplete != null) PreviewComplete(sender, result);
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:4,代码来源:Session.cs
示例9: OnExceptionCaught
void OnExceptionCaught(AsyncApiEdit sender, Exception ex)
{
if (ExceptionCaught != null) ExceptionCaught(sender, ex);
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:4,代码来源:Session.cs
示例10: EditorStatusChanged
// Webcontrol event handlers:
private void EditorStatusChanged(AsyncApiEdit sender)
{
if (PluginManager.AWBForm.TheSession.Editor.IsActive) {
LoadArticle();
}
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:7,代码来源:AssessmentsClass.cs
示例11: IncrementSavedEdits
internal void IncrementSavedEdits(AsyncApiEdit sender, SaveInfo save)
{
IncrementSavedEdits();
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:4,代码来源:TimerStats.cs
示例12: PageSaved
private void PageSaved(AsyncApiEdit sender, SaveInfo saveInfo)
{
ClearBrowser();
txtEdit.Text = "";
//TODO:Reinstate as needed
//try
//{
// if (IsReadOnlyDB())
// {
// StartDelayedRestartTimer(null, null);
// return;
// }
//}
//catch (Exception)
//{
// Start();
//}
//lower restart delay
if (_restartDelay > 5)
_restartDelay -= 1;
NumberOfEdits++;
LastArticle = "";
listMaker.Remove(TheArticle);
NudgeTimer.Stop();
SameArticleNudges = 0;
if (EditBoxTab.SelectedTab == tpHistory)
EditBoxTab.SelectedTab = tpEdit;
if (loggingEnabled)
logControl.AddLog(false, TheArticle.LogListener);
UpdateOverallTypoStats();
if (listMaker.Count == 0 && _autoSaveEditBoxEnabled)
EditBoxSaveTimer.Enabled = false;
Retries = 0;
// if user has loaded a settings file, save it every 10 edits if autosavesettings is set
if (autoSaveSettingsToolStripMenuItem.Checked && (NumberOfEdits % 10 == 0) && !string.IsNullOrEmpty(SettingsFile) && (NumberOfEdits > 5))
SavePrefs(SettingsFile);
Start();
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:45,代码来源:Main.cs
示例13: LoggedOff
private void LoggedOff(AsyncApiEdit sender)
{
DisableButtons();
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:4,代码来源:Main.cs
示例14: CreateEditor
private void CreateEditor()
{
APIEdit = new AsyncApiEdit(Variables.URLLong, this, Variables.PHP5);
APIEdit.PreviewComplete += PreviewComplete;
APIEdit.ExceptionCaught += APIEditExceptionCaught;
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:7,代码来源:Main.cs
示例15: APIEditExceptionCaught
private void APIEditExceptionCaught(AsyncApiEdit sender, Exception ex)
{
StartDelayedRestartTimer(null, null);
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:4,代码来源:Main.cs
示例16: AWBProcessingStart
// AWB processing stopped/started:
internal void AWBProcessingStart(AsyncApiEdit editor)
{
foreach (Label lbl in _statLabels)
{
if (string.IsNullOrEmpty(lbl.Text))
lbl.Text = "0";
}
TimerStats1.Visible = true;
TimerStats1.Init(editor, ETALabel, PluginStats);
PluginManager.StatusText.Text = "Started";
}
开发者ID:svn2github,项目名称:awb,代码行数:14,代码来源:PluginSettings.cs
示例17: EditorAborted
private static void EditorAborted(AsyncApiEdit sender)
{
PluginSettings.AWBProcessingAborted();
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:4,代码来源:PluginManager.cs
示例18: EditorStatusChanged
private static void EditorStatusChanged(AsyncApiEdit sender)
{
if (AWBForm.TheSession.Editor.IsActive) {
if (ActivePlugins.Count > 0)
PluginSettings.AWBProcessingStart(sender);
} else {
DefaultStatusText();
// If AWB has stopped and the list is empty we assume the job is finished, so close the log and upload:
if (AWBForm.ListMaker.Count == 0) {
AWBForm.TraceManager.Close();
}
}
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:13,代码来源:PluginManager.cs
示例19: OnAborted
void OnAborted(AsyncApiEdit sender)
{
if (Aborted != null) Aborted(sender);
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:4,代码来源:Session.cs
示例20: MaxlagExceeded
private void MaxlagExceeded(AsyncApiEdit sender, int maxlag, int retryAfter)
{
Retries++;
if (Retries < MaxRetries)
{
StartDelayedRestartTimer(retryAfter);
}
else
{
Stop();
MessageBox.Show(this, "Maxlag exceeded " + MaxRetries + " times in a row. Processing stopped, please try later when the server is under a less load.", "Stopped", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:15,代码来源:Main.cs
注:本文中的WikiFunctions.API.AsyncApiEdit类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论