Interface ISoftwareUpdate
Defines functionality to update the software.
Namespace: Sartorius.SAF.Infrastructure.SoftwareUpdate
Assembly: Sartorius.SAF.dll
Syntax
public interface ISoftwareUpdate : INotifyPropertyChanged
Properties
View SourceIsEnabled
Gets value indicating whether this instance is enabled.
Declaration
bool IsEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
State
The current SoftwareUpdateState.
Declaration
SoftwareUpdateState State { get; }
Property Value
Type | Description |
---|---|
SoftwareUpdateState |
Methods
View SourceCancelGetUpdateAsync()
Cancels the update get async.
Declaration
void CancelGetUpdateAsync()
CheckForUpdateAsync()
Checks if any updates are available async. When the update check has been completed, UpdateCheckCompleted is invoked.
Declaration
void CheckForUpdateAsync()
ExecuteUpdate()
Executes the update process.
Declaration
void ExecuteUpdate()
GetUpdateAsync()
Gets the update async. If the get progress changes, the System.ComponentModel.ProgressChangedEventHandler is invoked. If the get has been completed, the System.ComponentModel.AsyncCompletedEventHandler is invoked.
Declaration
void GetUpdateAsync()
InitializeAutoCheck(TimeSpan)
Initializes the automatic update check.
Declaration
void InitializeAutoCheck(TimeSpan timeSpan)
Parameters
Type | Name | Description |
---|---|---|
System.TimeSpan | timeSpan | The time interval of the update check. |
StopAutoCheck()
Stops the automatic check.
Declaration
void StopAutoCheck()
Events
View SourceGetUpdateCompleted
Invoked when GetUpdateAsync() has been completed.
Declaration
event AsyncCompletedEventHandler GetUpdateCompleted
Event Type
Type | Description |
---|---|
System.ComponentModel.AsyncCompletedEventHandler |
GetUpdateProgressChanged
Invoked when GetUpdateAsync() changed.
Declaration
event ProgressChangedEventHandler GetUpdateProgressChanged
Event Type
Type | Description |
---|---|
System.ComponentModel.ProgressChangedEventHandler |
UpdateCheckCompleted
Invoked when the update check has been completed.
Declaration
event UpdateCheckCompletedEventHandler UpdateCheckCompleted
Event Type
Type | Description |
---|---|
UpdateCheckCompletedEventHandler |