Interface IUpdateProvider
Defines methods to provide a software update.
Namespace: Sartorius.SAF.Infrastructure.SoftwareUpdate
Assembly: Sartorius.SAF.dll
Syntax
public interface IUpdateProvider
Methods
View SourceCancelGetUpdateAsync(UpdateInfo)
Cancels the get process of the software update defined in the updateInfo
async.
Declaration
void CancelGetUpdateAsync(UpdateInfo updateInfo)
Parameters
Type | Name | Description |
---|---|---|
UpdateInfo | updateInfo | The UpdateInfo. |
GetLocalPath()
Gets the path to the location that contains the software updates.
Declaration
string GetLocalPath()
Returns
Type | Description |
---|---|
System.String | The path. |
GetUpdateAsync(UpdateInfo)
Gets the software update defined in the updateInfo
async.
If GetUpdateAsync(UpdateInfo) changes, the GetUpdateProgressChanged is invoked.
If GetUpdateAsync(UpdateInfo) changes, the GetUpdateCompleted is invoked.
Declaration
void GetUpdateAsync(UpdateInfo updateInfo)
Parameters
Type | Name | Description |
---|---|---|
UpdateInfo | updateInfo | The UpdateInfo. |
Locate()
Locates the latest update of the software.
Declaration
UpdateInfo Locate()
Returns
Type | Description |
---|---|
UpdateInfo | The UpdateInfo. |
Events
View SourceGetUpdateCompleted
Invoked when GetUpdateAsync(UpdateInfo) has been completed.
Declaration
event AsyncCompletedEventHandler GetUpdateCompleted
Event Type
Type | Description |
---|---|
System.ComponentModel.AsyncCompletedEventHandler |
GetUpdateProgressChanged
Invoked when GetUpdateAsync(UpdateInfo) changed.
Declaration
event ProgressChangedEventHandler GetUpdateProgressChanged
Event Type
Type | Description |
---|---|
System.ComponentModel.ProgressChangedEventHandler |