C# Класс WikiFunctions.API.AsyncApiEdit

Multithreaded API editor class
Наследование: IApiEdit
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Abort ( ) : void
AsyncApiEdit ( string url ) : System
AsyncApiEdit ( string url, Control parentControl ) : System
Clone ( ) : AsyncApiEdit
Delete ( string title, string reason ) : void
Delete ( string title, string reason, bool watch ) : void
ExpandTemplates ( string title, string text ) : void
HttpGet ( string url ) : void
Login ( string username, string password ) : void
Logout ( ) : void
Move ( string title, string newTitle, string reason ) : void
Move ( string title, string newTitle, string reason, bool moveTalk, bool noRedirect ) : void
Move ( string title, string newTitle, string reason, bool moveTalk, bool noRedirect, bool watch ) : void
Open ( string title, bool resolveRedirects ) : void
ParseApi ( string queryParameters ) : void
Preview ( string title, string text ) : void
Protect ( string title, string reason, System.TimeSpan expiry, string edit, string move ) : void
Protect ( string title, string reason, System.TimeSpan expiry, string edit, string move, bool cascade, bool watch ) : void
Protect ( string title, string reason, string expiry, string edit, string move ) : void
Protect ( string title, string reason, string expiry, string edit, string move, bool cascade, bool watch ) : void
QueryApi ( string queryParameters ) : void
RefreshUserInfo ( ) : void
Reset ( ) : void
Rollback ( string title, string user ) : void
Save ( string pageText, string summary, bool minor, WatchOptions watch ) : void
Unwatch ( string title ) : void
Wait ( ) : void

Waits for asynchronous operation to complete

Watch ( string title ) : void

Защищенные методы

Метод Описание
OnExceptionCaught ( Exception ex ) : void
OnOperationComplete ( string operation, object result ) : void
OnOperationFailed ( string operation, Exception ex ) : void

Приватные методы

Метод Описание
AsyncApiEdit ( ApiEdit editor, Control parentControl ) : System
CallEvent ( Delegate method ) : void

Invokes a supplied delegate. If the editor is owned by a control, the delegate will called from the control's thread, otherwise it will be called from current thread.

InvokeFunction ( InvokeArgs args ) : void
InvokeFunction ( string name ) : void
InvokerThread ( object genericArgs ) : void

Описание методов

Abort() публичный Метод

public Abort ( ) : void
Результат void

AsyncApiEdit() публичный Метод

public AsyncApiEdit ( string url ) : System
url string
Результат System

AsyncApiEdit() публичный Метод

public AsyncApiEdit ( string url, Control parentControl ) : System
url string
parentControl System.Windows.Forms.Control
Результат System

Clone() публичный Метод

public Clone ( ) : AsyncApiEdit
Результат AsyncApiEdit

Delete() публичный Метод

public Delete ( string title, string reason ) : void
title string
reason string
Результат void

Delete() публичный Метод

public Delete ( string title, string reason, bool watch ) : void
title string
reason string
watch bool
Результат void

ExpandTemplates() публичный Метод

public ExpandTemplates ( string title, string text ) : void
title string
text string
Результат void

HttpGet() публичный Метод

public HttpGet ( string url ) : void
url string
Результат void

Login() публичный Метод

public Login ( string username, string password ) : void
username string
password string
Результат void

Logout() публичный Метод

public Logout ( ) : void
Результат void

Move() публичный Метод

public Move ( string title, string newTitle, string reason ) : void
title string
newTitle string
reason string
Результат void

Move() публичный Метод

public Move ( string title, string newTitle, string reason, bool moveTalk, bool noRedirect ) : void
title string
newTitle string
reason string
moveTalk bool
noRedirect bool
Результат void

Move() публичный Метод

public Move ( string title, string newTitle, string reason, bool moveTalk, bool noRedirect, bool watch ) : void
title string
newTitle string
reason string
moveTalk bool
noRedirect bool
watch bool
Результат void

OnExceptionCaught() защищенный Метод

protected OnExceptionCaught ( Exception ex ) : void
ex System.Exception
Результат void

OnOperationComplete() защищенный Метод

protected OnOperationComplete ( string operation, object result ) : void
operation string
result object
Результат void

OnOperationFailed() защищенный Метод

protected OnOperationFailed ( string operation, Exception ex ) : void
operation string
ex System.Exception
Результат void

Open() публичный Метод

public Open ( string title, bool resolveRedirects ) : void
title string
resolveRedirects bool
Результат void

ParseApi() публичный Метод

public ParseApi ( string queryParameters ) : void
queryParameters string
Результат void

Preview() публичный Метод

public Preview ( string title, string text ) : void
title string
text string
Результат void

Protect() публичный Метод

public Protect ( string title, string reason, System.TimeSpan expiry, string edit, string move ) : void
title string
reason string
expiry System.TimeSpan
edit string
move string
Результат void

Protect() публичный Метод

public Protect ( string title, string reason, System.TimeSpan expiry, string edit, string move, bool cascade, bool watch ) : void
title string
reason string
expiry System.TimeSpan
edit string
move string
cascade bool
watch bool
Результат void

Protect() публичный Метод

public Protect ( string title, string reason, string expiry, string edit, string move ) : void
title string
reason string
expiry string
edit string
move string
Результат void

Protect() публичный Метод

public Protect ( string title, string reason, string expiry, string edit, string move, bool cascade, bool watch ) : void
title string
reason string
expiry string
edit string
move string
cascade bool
watch bool
Результат void

QueryApi() публичный Метод

public QueryApi ( string queryParameters ) : void
queryParameters string
Результат void

RefreshUserInfo() публичный Метод

public RefreshUserInfo ( ) : void
Результат void

Reset() публичный Метод

public Reset ( ) : void
Результат void

Rollback() публичный Метод

public Rollback ( string title, string user ) : void
title string
user string
Результат void

Save() публичный Метод

public Save ( string pageText, string summary, bool minor, WatchOptions watch ) : void
pageText string
summary string
minor bool
watch WatchOptions
Результат void

Unwatch() публичный Метод

public Unwatch ( string title ) : void
title string
Результат void

Wait() публичный Метод

Waits for asynchronous operation to complete
public Wait ( ) : void
Результат void

Watch() публичный Метод

public Watch ( string title ) : void
title string
Результат void