Class Runner
- Namespace
- ZeroInstall.Model
- Assembly
- ZeroInstall.Model.dll
A special kind of dependency: the program that is used to run this one. For example, a Python program might specify Python as its runner.
[Serializable]
[Equatable]
public class Runner : Dependency, IEquatable<XmlUnknown>, IEquatable<FeedElement>, ICloneable<Restriction>, IEquatable<Restriction>, IInterfaceUriBindingContainer, IInterfaceUri, IBindingContainer, ICloneable<Dependency>, IEquatable<Dependency>, IArgBaseContainer, IEquatable<Runner>
- Inheritance
-
Runner
- Implements
- Inherited Members
Properties
Arguments
A list of command-line arguments to be passed to the runner before the path of the implementation.
[Browsable(false)]
[OrderedEquality]
public List<ArgBase> Arguments { get; }
Property Value
Command
The name of the command in the InterfaceUri to use; leave null
for NameRun.
[TypeConverter(typeof(CommandNameConverter))]
public string? Command { get; set; }
Property Value
XmlTagName
protected override string XmlTagName { get; }
Property Value
Methods
Clone()
Creates a deep copy of this Runner instance.
public override Restriction Clone()
Returns
- Restriction
The new copy of the Runner.
CloneRunner()
Creates a deep copy of this Runner instance.
public Runner CloneRunner()
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Equals(Runner?)
protected bool Equals(Runner? other)
Parameters
other
Runner
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Normalize()
Flattens inheritance structures, Converts legacy elements, sets default values, etc..
public override void Normalize()
Exceptions
- InvalidDataException
A required property is not set or invalid.
ToString()
Returns the runner in the form "Interface (Command)". Not safe for parsing!
public override string ToString()
Returns
Operators
operator ==(Runner?, Runner?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(Runner? left, Runner? right)
Parameters
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(Runner?, Runner?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(Runner? left, Runner? right)
Parameters
Returns
- bool
true if the objects are not equal; otherwise, false.