C# Class WikiFunctions.API.AsyncApiEdit

Multithreaded API editor class
Inheritance: IApiEdit
ファイルを表示 Open project: reedy/AutoWikiBrowser Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
OnExceptionCaught ( Exception ex ) : void
OnOperationComplete ( string operation, object result ) : void
OnOperationFailed ( string operation, Exception ex ) : void

Private Methods

Method 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 method

public Abort ( ) : void
return void

AsyncApiEdit() public method

public AsyncApiEdit ( string url ) : System
url string
return System

AsyncApiEdit() public method

public AsyncApiEdit ( string url, Control parentControl ) : System
url string
parentControl System.Windows.Forms.Control
return System

Clone() public method

public Clone ( ) : AsyncApiEdit
return AsyncApiEdit

Delete() public method

public Delete ( string title, string reason ) : void
title string
reason string
return void

Delete() public method

public Delete ( string title, string reason, bool watch ) : void
title string
reason string
watch bool
return void

ExpandTemplates() public method

public ExpandTemplates ( string title, string text ) : void
title string
text string
return void

HttpGet() public method

public HttpGet ( string url ) : void
url string
return void

Login() public method

public Login ( string username, string password ) : void
username string
password string
return void

Logout() public method

public Logout ( ) : void
return void

Move() public method

public Move ( string title, string newTitle, string reason ) : void
title string
newTitle string
reason string
return void

Move() public method

public Move ( string title, string newTitle, string reason, bool moveTalk, bool noRedirect ) : void
title string
newTitle string
reason string
moveTalk bool
noRedirect bool
return void

Move() public method

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
return void

OnExceptionCaught() protected method

protected OnExceptionCaught ( Exception ex ) : void
ex System.Exception
return void

OnOperationComplete() protected method

protected OnOperationComplete ( string operation, object result ) : void
operation string
result object
return void

OnOperationFailed() protected method

protected OnOperationFailed ( string operation, Exception ex ) : void
operation string
ex System.Exception
return void

Open() public method

public Open ( string title, bool resolveRedirects ) : void
title string
resolveRedirects bool
return void

ParseApi() public method

public ParseApi ( string queryParameters ) : void
queryParameters string
return void

Preview() public method

public Preview ( string title, string text ) : void
title string
text string
return void

Protect() public method

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
return void

Protect() public method

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
return void

Protect() public method

public Protect ( string title, string reason, string expiry, string edit, string move ) : void
title string
reason string
expiry string
edit string
move string
return void

Protect() public method

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
return void

QueryApi() public method

public QueryApi ( string queryParameters ) : void
queryParameters string
return void

RefreshUserInfo() public method

public RefreshUserInfo ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

Rollback() public method

public Rollback ( string title, string user ) : void
title string
user string
return void

Save() public method

public Save ( string pageText, string summary, bool minor, WatchOptions watch ) : void
pageText string
summary string
minor bool
watch WatchOptions
return void

Unwatch() public method

public Unwatch ( string title ) : void
title string
return void

Wait() public method

Waits for asynchronous operation to complete
public Wait ( ) : void
return void

Watch() public method

public Watch ( string title ) : void
title string
return void