Show / Hide Table of Contents

Interface ISoftwareUpdate

Defines functionality to update the software.

System.ComponentModel.INotifyPropertyChanged.PropertyChanged
Namespace: Sartorius.SAF.Infrastructure.SoftwareUpdate
Assembly: Sartorius.SAF.dll
Syntax
public interface ISoftwareUpdate : INotifyPropertyChanged

Properties

View Source

IsEnabled

Gets value indicating whether this instance is enabled.

Declaration
bool IsEnabled { get; }
Property Value
Type Description
System.Boolean

true if this instance is enabled; otherwise, false.

View Source

State

The current SoftwareUpdateState.

Declaration
SoftwareUpdateState State { get; }
Property Value
Type Description
SoftwareUpdateState

Methods

View Source

CancelGetUpdateAsync()

Cancels the update get async.

Declaration
void CancelGetUpdateAsync()
View Source

CheckForUpdateAsync()

Checks if any updates are available async. When the update check has been completed, UpdateCheckCompleted is invoked.

Declaration
void CheckForUpdateAsync()
View Source

ExecuteUpdate()

Executes the update process.

Declaration
void ExecuteUpdate()
View Source

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()
View Source

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.

View Source

StopAutoCheck()

Stops the automatic check.

Declaration
void StopAutoCheck()

Events

View Source

GetUpdateCompleted

Invoked when GetUpdateAsync() has been completed.

Declaration
event AsyncCompletedEventHandler GetUpdateCompleted
Event Type
Type Description
System.ComponentModel.AsyncCompletedEventHandler
View Source

GetUpdateProgressChanged

Invoked when GetUpdateAsync() changed.

Declaration
event ProgressChangedEventHandler GetUpdateProgressChanged
Event Type
Type Description
System.ComponentModel.ProgressChangedEventHandler
View Source

UpdateCheckCompleted

Invoked when the update check has been completed.

Declaration
event UpdateCheckCompletedEventHandler UpdateCheckCompleted
Event Type
Type Description
UpdateCheckCompletedEventHandler

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
NotifyPropertyChangedExtensions.GetPropertyName<T>(INotifyPropertyChanged, Expression<Func<T>>)
NotifyPropertyChangedExtensions.RaisePropertyChanged<T>(INotifyPropertyChanged, Expression<Func<T>>)
NotifyPropertyChangedExtensions.RaisePropertyChanged(INotifyPropertyChanged, String)
PropertyHelper.RaisePropertyChanged<T>(INotifyPropertyChanged, Expression<Func<T>>, PropertyChangedEventHandler)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX