Skip to main content

Class UpdateStore

A local store for holding information about available and applied Updates

Assembly: Meadow.dll
View Source
Declaration
public class UpdateStore : IEnumerable<UpdateInfo>, IEnumerable

Implements:
System.Collections.Generic.IEnumerable<Meadow.Update.UpdateInfo>, System.Collections.IEnumerable

Methods

Clear()

Deletes all local update archives and information

View Source
Declaration
public void Clear()

GetUpdateArchivePath(string)

Gets the full path to the provided update archive

View Source
Declaration
public string? GetUpdateArchivePath(string updateID)
Returns

System.String

Parameters
TypeNameDescription
System.StringupdateIDThe ID of the archive of interest

GetFileHash(FileInfo)

Calculates the CRC32 hash of a file

View Source
Declaration
public Task<string> GetFileHash(FileInfo file)
Returns

System.Threading.Tasks.Task<System.String>

Parameters
TypeNameDescription
System.IO.FileInfofileThe file to hash

GetEnumerator()

Returns an enumerator that iterates through the collection.

View Source
Declaration
public IEnumerator<UpdateInfo> GetEnumerator()
Returns

System.Collections.Generic.IEnumerator<Meadow.Update.UpdateInfo>: An enumerator that can be used to iterate through the collection.

Implements

  • System.Collections.Generic.IEnumerable<Meadow.Update.UpdateInfo>
  • System.Collections.IEnumerable

Extension Methods

  • System.Collections.Generic.IEnumerable{Meadow.Update.UpdateInfo}.Meadow.ExtensionMethods.Contains``1(Meadow.Update.UpdateInfo[])
  • System.Collections.Generic.IEnumerable{Meadow.Update.UpdateInfo}.Meadow.ExtensionMethods.FirstIndexOf``1(Meadow.Update.UpdateInfo[])