Interface IUpdateService
Provides an abstraction for the Meadow Update Service
Assembly: Meadow.Contracts.dll
View Source
public interface IUpdateService
Properties
CanUpdate
Returns the update service's current ability to apply an update
View Source
bool CanUpdate { get; }
State
Gets the current state of the service
View Source
UpdateState State { get; }
Methods
RetrieveUpdate(UpdateInfo)
Retrieves an update package from the defined update server with the provided parameters
View Source
void RetrieveUpdate(UpdateInfo updateInfo)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Update.UpdateInfo | updateInfo | The UpdateInfo describing the update to retrieve |
ApplyUpdate(UpdateInfo)
Applies an already-retrieved update package with the provided parameters
View Source
void ApplyUpdate(UpdateInfo updateInfo)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Update.UpdateInfo | updateInfo | The UpdateInfo describing the update to apply |
ClearUpdates()
Clears all locally stored update package information
View Source
void ClearUpdates()
Stop()
Stops the service
View Source
void Stop()
Events
StateChanged
Event raised when an the state of the Update service changes
View Source
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
event UpdateEventHandler UpdateAvailable
Event Type
Meadow.Update.UpdateEventHandler
RetrieveProgress
Event raised during update file retrieval progress
View Source
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
event UpdateEventHandler UpdateRetrieved
Event Type
Meadow.Update.UpdateEventHandler
UpdateSuccess
Event raised after an update package has been successfully applied
View Source
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
event UpdateEventHandler UpdateFailure