Show / Hide Table of Contents

Class SoftwareUpdate

Implements functionality to update the software.

Inheritance
System.Object
ObservableObject
SoftwareUpdate
Implements
System.ComponentModel.IDataErrorInfo
System.ComponentModel.INotifyDataErrorInfo
INotifyDataPropertyChanged
ISoftwareUpdate
System.ComponentModel.INotifyPropertyChanged
ObservableObject.PropertyChanged
ObservableObject.HasErrors
ObservableObject.AddError(IError)
ObservableObject.CascadeErrors()
ObservableObject.ClearErrors()
ObservableObject.ForceValidation<T>(String, T)
ObservableObject.GetEntityErrors()
ObservableObject.GetErrors(String)
ObservableObject.OnDataPropertyChanged(String)
ObservableObject.OnErrorsChanged(String)
ObservableObject.OnPropertyChanged(String)
ObservableObject.OnValidate(String)
ObservableObject.RemoveError(Guid)
ObservableObject.RemoveError(IError)
ObservableObject.SetValue<T>(String, T, T)
ObservableObject.SetValue<T>(String, T, T, IEqualityComparer<T>)
ObservableObject.SetValue<T>(String, T, T, Action<T>, Action<T>)
ObservableObject.SetValue<T>(String, T, T, Action<T>, Action<T>, IEqualityComparer<T>)
ObservableObject.INotifyDataPropertyChanged.DataPropertyChanged
ObservableObject.INotifyDataErrorInfo.ErrorsChanged
ObservableObject.IDataErrorInfo.Error
ObservableObject.INotifyDataErrorInfo.HasErrors
ObservableObject.INotifyDataErrorInfo.GetErrors(String)
ObservableObject.IDataErrorInfo.Item[String]
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Infrastructure.SoftwareUpdate
Assembly: Sartorius.SAF.dll
Syntax
[Export(typeof(ISoftwareUpdate))]
public class SoftwareUpdate : ObservableObject, IDataErrorInfo, INotifyDataErrorInfo, INotifyDataPropertyChanged, ISoftwareUpdate, INotifyPropertyChanged

Constructors

View Source

SoftwareUpdate(IUpdateProvider)

Initializes a new instance of the SoftwareUpdate class.

Declaration
[ImportingConstructor]
public SoftwareUpdate(IUpdateProvider updateProvider)
Parameters
Type Name Description
IUpdateProvider updateProvider

An implementation of the IUpdateProvider.

Properties

View Source

IsEnabled

Gets value indicating whether this instance is enabled.

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

true if this instance is enabled; otherwise, false.

View Source

State

Gets the state of this instance.

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

Methods

View Source

CancelGetUpdateAsync()

Cancels the update get async.

Declaration
public void CancelGetUpdateAsync()
View Source

CheckForUpdateAsync()

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

Declaration
public void CheckForUpdateAsync()
View Source

ExecuteUpdate()

Executes the update process.

Declaration
public 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
public void GetUpdateAsync()
View Source

InitializeAutoCheck(TimeSpan)

Initializes the automatic update check.

Declaration
public 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
public void StopAutoCheck()

Events

View Source

GetUpdateCompleted

Invoked when GetUpdateAsync() has been completed.

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

GetUpdateProgressChanged

Invoked when GetUpdateAsync() changed.

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

UpdateCheckCompleted

Invoked when the update check has been completed.

Declaration
public event UpdateCheckCompletedEventHandler UpdateCheckCompleted
Event Type
Type Description
UpdateCheckCompletedEventHandler

Implements

System.ComponentModel.IDataErrorInfo
System.ComponentModel.INotifyDataErrorInfo
INotifyDataPropertyChanged
ISoftwareUpdate
System.ComponentModel.INotifyPropertyChanged

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