Skip to main content

Interface IUpdateService

Provides an abstraction for the Meadow Update Service

Assembly: Meadow.Contracts.dll​
View Source​
Declaration
public interface IUpdateService

Properties​

CanUpdate​

Returns the update service's current ability to apply an update

View Source​
Declaration
bool CanUpdate { get; }

State​

Gets the current state of the service

View Source​
Declaration
UpdateState State { get; }

Methods​

RetrieveUpdate(UpdateInfo)​

Retrieves an update package from the defined update server with the provided parameters

View Source​
Declaration
void RetrieveUpdate(UpdateInfo updateInfo)
Parameters​
TypeNameDescription
Meadow.Update.UpdateInfoupdateInfoThe UpdateInfo describing the update to retrieve

ApplyUpdate(UpdateInfo)​

Applies an already-retrieved update package with the provided parameters

View Source​
Declaration
void ApplyUpdate(UpdateInfo updateInfo)
Parameters​
TypeNameDescription
Meadow.Update.UpdateInfoupdateInfoThe UpdateInfo describing the update to apply

ClearUpdates()​

Clears all locally stored update package information

View Source​
Declaration
void ClearUpdates()

Stop()​

Stops the service

View Source​
Declaration
void Stop()

Events​

StateChanged​

Event raised when an the state of the Update service changes

View Source​
Declaration
event EventHandler<UpdateState> StateChanged
Event Type​

System.EventHandler<Meadow.UpdateState>

UpdateAvailable​

Event raised when an update is available on the defined Update server

View Source​
Declaration
event UpdateEventHandler UpdateAvailable
Event Type​

Meadow.Update.UpdateEventHandler

RetrieveProgress​

Event raised during update file retrieval progress

View Source​
Declaration
event UpdateEventHandler RetrieveProgress
Event Type​

Meadow.Update.UpdateEventHandler

UpdateRetrieved​

Event raised after an update package has been retrieved from the defined Update server

View Source​
Declaration
event UpdateEventHandler UpdateRetrieved
Event Type​

Meadow.Update.UpdateEventHandler

UpdateSuccess​

Event raised after an update package has been successfully applied

View Source​
Declaration
event UpdateEventHandler UpdateSuccess
Event Type​

Meadow.Update.UpdateEventHandler

UpdateFailure​

Event raised if a failure occurs in an attempt to apply an update package

View Source​
Declaration
event UpdateEventHandler UpdateFailure
Event Type​

Meadow.Update.UpdateEventHandler