Class Recipe
- Namespace
- ZeroInstall.Model
- Assembly
- ZeroInstall.Model.dll
Retrieves an implementation by applying a list of IRecipeSteps, such as downloading and combining multiple archives.
public sealed class Recipe : RetrievalMethod, IEquatable<FeedElement>, ICloneable<RetrievalMethod>, IEquatable<Recipe>
- Inheritance
-
objectRecipe
- Implements
- Inherited Members
Constructors
Recipe()
public Recipe()
Properties
ContainsUnknownSteps
Indicates whether this recipe contains steps of unknown type and therefore can not be processed.
[Browsable(false)]
public bool ContainsUnknownSteps { get; }
Property Value
Steps
An ordered list of IRecipeSteps to execute.
public List<IRecipeStep> Steps { get; }
Property Value
Methods
Clone()
Creates a deep copy of this instance.
public override RetrievalMethod Clone()
Returns
CloneRecipe()
Creates a deep copy of this Recipe instance.
public Recipe CloneRecipe()
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
Normalize(FeedUri?)
Converts legacy elements, sets default values, etc..
public override void Normalize(FeedUri? feedUri = null)
Parameters
feedUriFeedUriThe feed the data was originally loaded from.
Exceptions
- UriFormatException
Href is relative and
feedUriis a remote URI.- InvalidDataException
A required property is not set or invalid.
ToString()
Returns the recipe in the form "Recipe (X steps)". Not safe for parsing!
public override string ToString()
Returns
Operators
operator ==(Recipe?, Recipe?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(Recipe? left, Recipe? right)
Parameters
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(Recipe?, Recipe?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(Recipe? left, Recipe? right)
Parameters
Returns
- bool
true if the objects are not equal; otherwise, false.