C# Class Microsoft.HockeyApp.UpdateManager

Provides automatic update functionality with HockeyApp
Show file Open project: bitstadium/HockeySDK-Windows

Private Properties

Property Type Description
CheckForUpdates Task
CheckForUpdates void
CheckWithUpdateFrequency bool
DoUpdate void
NavigateToUpdatePage void
RunUpdateCheck void
RunUpdateCheckAsync System.Threading.Tasks.Task
StartUi void
UpdateManager Microsoft.HockeyApp.Gui
UpdateManager Microsoft.HockeyApp.Model
UpdateVersionIfAvailable System.Threading.Tasks.Task
UpdateVersionIfAvailable void

Public Methods

Method Description
CheckForUpdatesAsync ( bool autoShowUi, Func shutdownActions = null, Action updateAvailableAction = null ) : Task
RunUpdateCheck ( UpdateCheckSettings settings = null ) : void

Check for an update on the server HockecCient needs to be configured before calling this method (normally done by configuring a crahshandler in the App() constructor)

Protected Methods

Method Description
ShowUpdateNotification ( System.Version currentVersion, IEnumerable appVersions, UpdateCheckSettings updateCheckSettings ) : void
ShowVersionPopup ( System.Version currentVersion, IEnumerable appVersions, UpdateCheckSettings updateCheckSettings ) : void

Private Methods

Method Description
CheckForUpdates ( ) : Task
CheckForUpdates ( bool autoShowUi, Func shutdownActions = null, Action updateAvailableAction = null ) : void
CheckWithUpdateFrequency ( UpdateCheckFrequency frequency ) : bool
DoUpdate ( IAppVersion availableUpdate ) : void
NavigateToUpdatePage ( System.Version currentVersion, IEnumerable appVersions, UpdateCheckSettings updateCheckSettings ) : void
RunUpdateCheck ( string identifier, UpdateCheckSettings settings = null ) : void
RunUpdateCheckAsync ( UpdateCheckSettings settings = null ) : System.Threading.Tasks.Task

Check for an update on the server HockecCient needs to be configured before calling this method (normally done by configuring a crahshandler in the App() constructor)

StartUi ( IAppVersion newVersion ) : void
UpdateManager ( ) : Microsoft.HockeyApp.Gui
UpdateManager ( ) : Microsoft.HockeyApp.Model
UpdateVersionIfAvailable ( UpdateCheckSettings updateCheckSettings ) : System.Threading.Tasks.Task
UpdateVersionIfAvailable ( UpdateCheckSettings updateCheckSettings ) : void

Method Details

CheckForUpdatesAsync() public method

public CheckForUpdatesAsync ( bool autoShowUi, Func shutdownActions = null, Action updateAvailableAction = null ) : Task
autoShowUi bool
shutdownActions Func
updateAvailableAction Action
return Task

RunUpdateCheck() public method

Check for an update on the server HockecCient needs to be configured before calling this method (normally done by configuring a crahshandler in the App() constructor)
public RunUpdateCheck ( UpdateCheckSettings settings = null ) : void
settings UpdateCheckSettings [optional] custom settings
return void

ShowUpdateNotification() protected method

protected ShowUpdateNotification ( System.Version currentVersion, IEnumerable appVersions, UpdateCheckSettings updateCheckSettings ) : void
currentVersion System.Version
appVersions IEnumerable
updateCheckSettings UpdateCheckSettings
return void

ShowVersionPopup() protected method

protected ShowVersionPopup ( System.Version currentVersion, IEnumerable appVersions, UpdateCheckSettings updateCheckSettings ) : void
currentVersion System.Version
appVersions IEnumerable
updateCheckSettings UpdateCheckSettings
return void