Class UpdateStore
A local store for holding information about available and applied Updates
Assembly: Meadow.dll
View Source
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
public void Clear()
GetUpdateArchivePath(string)
Gets the full path to the provided update archive
View Source
public string? GetUpdateArchivePath(string updateID)
Returns
System.String
Parameters
Type | Name | Description |
---|---|---|
System.String | updateID | The ID of the archive of interest |
GetFileHash(FileInfo)
Calculates the SHA256 hash of a file
View Source
public string GetFileHash(FileInfo file)
Returns
System.String
Parameters
Type | Name | Description |
---|---|---|
System.IO.FileInfo | file | The file to hash |
GetEnumerator()
Returns an enumerator that iterates through the collection.
View Source
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[])