C# 클래스 NAppUpdate.Framework.UpdateManager

An UpdateManager class is a singleton class handling the update process from start to end for a consumer application
파일 보기 프로젝트 열기: synhershko/NAppUpdate 1 사용 예제들

Private Properties

프로퍼티 타입 설명
IsAfterRestart bool
TaskProgressCallback void
UpdateManager System

공개 메소드들

메소드 설명
Abort ( ) : void

Abort update process, cancelling whatever background process currently taking place without waiting for it to complete

Abort ( bool waitForTermination ) : void

Abort update process, cancelling whatever background process currently taking place

ApplyUpdates ( ) : void

Starts the updater executable and sends update data to it, and relaunch the caller application as soon as its done

ApplyUpdates ( bool relaunchApplication ) : void

Starts the updater executable and sends update data to it

ApplyUpdates ( bool relaunchApplication, bool updaterDoLogging, bool updaterShowConsole ) : void

Starts the updater executable and sends update data to it

BeginCheckForUpdates ( AsyncCallback callback, Object state ) : IAsyncResult

Check for updates asynchronously

BeginPrepareUpdates ( AsyncCallback callback, Object state ) : IAsyncResult

Prepare updates asynchronously

CheckForUpdates ( ) : void

Check for updates synchronously

CleanUp ( ) : void

Delete the temp folder as a whole and fail silently

EndCheckForUpdates ( IAsyncResult asyncResult ) : void

Block until previously-called CheckForUpdates complete

EndPrepareUpdates ( IAsyncResult asyncResult ) : void

Block until previously-called PrepareUpdates complete

PrepareUpdates ( ) : void

Prepare updates synchronously

ReinstateIfRestarted ( ) : void
RollbackUpdates ( ) : void

Rollback executed updates in case of an update failure

비공개 메소드들

메소드 설명
IsAfterRestart ( ) : bool
TaskProgressCallback ( UpdateProgressInfo currentStatus, IUpdateTask task ) : void
UpdateManager ( ) : System

메소드 상세

Abort() 공개 메소드

Abort update process, cancelling whatever background process currently taking place without waiting for it to complete
public Abort ( ) : void
리턴 void

Abort() 공개 메소드

Abort update process, cancelling whatever background process currently taking place
public Abort ( bool waitForTermination ) : void
waitForTermination bool If true, blocks the calling thread until the current process terminates
리턴 void

ApplyUpdates() 공개 메소드

Starts the updater executable and sends update data to it, and relaunch the caller application as soon as its done
public ApplyUpdates ( ) : void
리턴 void

ApplyUpdates() 공개 메소드

Starts the updater executable and sends update data to it
public ApplyUpdates ( bool relaunchApplication ) : void
relaunchApplication bool true if relaunching the caller application is required; false otherwise
리턴 void

ApplyUpdates() 공개 메소드

Starts the updater executable and sends update data to it
public ApplyUpdates ( bool relaunchApplication, bool updaterDoLogging, bool updaterShowConsole ) : void
relaunchApplication bool true if relaunching the caller application is required; false otherwise
updaterDoLogging bool true if the updater writes to a log file; false otherwise
updaterShowConsole bool true if the updater shows the console window; false otherwise
리턴 void

BeginCheckForUpdates() 공개 메소드

Check for updates asynchronously
public BeginCheckForUpdates ( AsyncCallback callback, Object state ) : IAsyncResult
callback AsyncCallback Callback function to call when done; can be null
state Object Allows the caller to preserve state; can be null
리턴 IAsyncResult

BeginPrepareUpdates() 공개 메소드

Prepare updates asynchronously
public BeginPrepareUpdates ( AsyncCallback callback, Object state ) : IAsyncResult
callback AsyncCallback Callback function to call when done; can be null
state Object Allows the caller to preserve state; can be null
리턴 IAsyncResult

CheckForUpdates() 공개 메소드

Check for updates synchronously
public CheckForUpdates ( ) : void
리턴 void

CleanUp() 공개 메소드

Delete the temp folder as a whole and fail silently
public CleanUp ( ) : void
리턴 void

EndCheckForUpdates() 공개 메소드

Block until previously-called CheckForUpdates complete
public EndCheckForUpdates ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
리턴 void

EndPrepareUpdates() 공개 메소드

Block until previously-called PrepareUpdates complete
public EndPrepareUpdates ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
리턴 void

PrepareUpdates() 공개 메소드

Prepare updates synchronously
public PrepareUpdates ( ) : void
리턴 void

ReinstateIfRestarted() 공개 메소드

public ReinstateIfRestarted ( ) : void
리턴 void

RollbackUpdates() 공개 메소드

Rollback executed updates in case of an update failure
public RollbackUpdates ( ) : void
리턴 void