C# Class WikiFunctions.API.AsyncApiEdit

Multithreaded API editor class
Inheritance: IApiEdit
Afficher le fichier Open project: reedy/AutoWikiBrowser Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
OnExceptionCaught ( Exception ex ) : void
OnOperationComplete ( string operation, object result ) : void
OnOperationFailed ( string operation, Exception ex ) : void

Private Methods

Méthode Description
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

Method Details

Abort() public méthode

public Abort ( ) : void
Résultat void

AsyncApiEdit() public méthode

public AsyncApiEdit ( string url ) : System
url string
Résultat System

AsyncApiEdit() public méthode

public AsyncApiEdit ( string url, Control parentControl ) : System
url string
parentControl System.Windows.Forms.Control
Résultat System

Clone() public méthode

public Clone ( ) : AsyncApiEdit
Résultat AsyncApiEdit

Delete() public méthode

public Delete ( string title, string reason ) : void
title string
reason string
Résultat void

Delete() public méthode

public Delete ( string title, string reason, bool watch ) : void
title string
reason string
watch bool
Résultat void

ExpandTemplates() public méthode

public ExpandTemplates ( string title, string text ) : void
title string
text string
Résultat void

HttpGet() public méthode

public HttpGet ( string url ) : void
url string
Résultat void

Login() public méthode

public Login ( string username, string password ) : void
username string
password string
Résultat void

Logout() public méthode

public Logout ( ) : void
Résultat void

Move() public méthode

public Move ( string title, string newTitle, string reason ) : void
title string
newTitle string
reason string
Résultat void

Move() public méthode

public Move ( string title, string newTitle, string reason, bool moveTalk, bool noRedirect ) : void
title string
newTitle string
reason string
moveTalk bool
noRedirect bool
Résultat void

Move() public méthode

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
Résultat void

OnExceptionCaught() protected méthode

protected OnExceptionCaught ( Exception ex ) : void
ex System.Exception
Résultat void

OnOperationComplete() protected méthode

protected OnOperationComplete ( string operation, object result ) : void
operation string
result object
Résultat void

OnOperationFailed() protected méthode

protected OnOperationFailed ( string operation, Exception ex ) : void
operation string
ex System.Exception
Résultat void

Open() public méthode

public Open ( string title, bool resolveRedirects ) : void
title string
resolveRedirects bool
Résultat void

ParseApi() public méthode

public ParseApi ( string queryParameters ) : void
queryParameters string
Résultat void

Preview() public méthode

public Preview ( string title, string text ) : void
title string
text string
Résultat void

Protect() public méthode

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
Résultat void

Protect() public méthode

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
Résultat void

Protect() public méthode

public Protect ( string title, string reason, string expiry, string edit, string move ) : void
title string
reason string
expiry string
edit string
move string
Résultat void

Protect() public méthode

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
Résultat void

QueryApi() public méthode

public QueryApi ( string queryParameters ) : void
queryParameters string
Résultat void

RefreshUserInfo() public méthode

public RefreshUserInfo ( ) : void
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

Rollback() public méthode

public Rollback ( string title, string user ) : void
title string
user string
Résultat void

Save() public méthode

public Save ( string pageText, string summary, bool minor, WatchOptions watch ) : void
pageText string
summary string
minor bool
watch WatchOptions
Résultat void

Unwatch() public méthode

public Unwatch ( string title ) : void
title string
Résultat void

Wait() public méthode

Waits for asynchronous operation to complete
public Wait ( ) : void
Résultat void

Watch() public méthode

public Watch ( string title ) : void
title string
Résultat void