Show / Hide Table of Contents

Class Runner

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.

Inheritance
Object
XmlUnknown
FeedElement
Restriction
Dependency
Runner
Implements
IEquatable<XmlUnknown>
IEquatable<FeedElement>
ICloneable<Restriction>
IEquatable<Restriction>
IInterfaceUriBindingContainer
IInterfaceUri
IBindingContainer
ICloneable<Dependency>
IEquatable<Dependency>
IArgBaseContainer
IEquatable<Runner>
Inherited Members
Dependency.IsApplicable(Requirements)
Dependency.Equals(Dependency)
Dependency.Importance
Dependency.Use
Dependency.Bindings
Restriction.DistributionZeroInstall
Restriction.Equals(Restriction)
Restriction.InterfaceUri
Restriction.OS
Restriction.Versions
Restriction.InterfaceUriString
Restriction.VersionsString
Restriction.Constraints
Restriction.Distributions
Restriction.DistributionsString
FeedElement.FilterMismatch<T>(T)
FeedElement.FilterMismatch(IRecipeStep)
FeedElement.Equals(FeedElement)
FeedElement.IfZeroInstallVersion
FeedElement.IfZeroInstallVersionString
XmlUnknown.UnknownAttributes
XmlUnknown.UnknownElements
XmlUnknown.EnsureAttribute(Object, String)
XmlUnknown.EnsureAttributeSafeID(String, String)
XmlUnknown.ToShortXml()
XmlUnknown.Equals(XmlUnknown)
Namespace: ZeroInstall.Model
Assembly: ZeroInstall.Model.dll
Syntax
public class Runner : Dependency, IInterfaceUriBindingContainer, IInterfaceUri, IBindingContainer, IArgBaseContainer

Constructors

Runner()

Declaration
public Runner()

Properties

Arguments

A list of command-line arguments to be passed to the runner before the path of the implementation.

Declaration
public List<ArgBase> Arguments { get; }
Property Value
Type Description
List<ArgBase>

Command

The name of the command in the InterfaceUri to use; leave null for NameRun.

Declaration
public string Command { get; set; }
Property Value
Type Description
String

XmlTagName

Declaration
protected override string XmlTagName { get; }
Property Value
Type Description
String
Overrides
Dependency.XmlTagName

Methods

Clone()

Creates a deep copy of this Runner instance.

Declaration
public override Restriction Clone()
Returns
Type Description
Restriction

The new copy of the Runner.

Overrides
Dependency.Clone()

CloneRunner()

Creates a deep copy of this Runner instance.

Declaration
public Runner CloneRunner()
Returns
Type Description
Runner

The new copy of the Runner.

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
Dependency.Equals(Object)

Equals(Runner)

Declaration
public bool Equals(Runner other)
Parameters
Type Name Description
Runner other
Returns
Type Description
Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
Dependency.GetHashCode()

Normalize()

Flattens inheritance structures, Converts legacy elements, sets default values, etc..

Declaration
public override void Normalize()
Overrides
Dependency.Normalize()
Exceptions
Type Condition
InvalidDataException

A required property is not set or invalid.

ToString()

Returns the runner in the form "Interface (Command)". Not safe for parsing!

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Dependency.ToString()

Operators

Equality(Runner, Runner)

Indicates whether the object on the left is equal to the object on the right.

Declaration
public static bool operator ==(Runner left, Runner right)
Parameters
Type Name Description
Runner left

The left object

Runner right

The right object

Returns
Type Description
Boolean

true if the objects are equal; otherwise, false.

Inequality(Runner, Runner)

Indicates whether the object on the left is not equal to the object on the right.

Declaration
public static bool operator !=(Runner left, Runner right)
Parameters
Type Name Description
Runner left

The left object

Runner right

The right object

Returns
Type Description
Boolean

true if the objects are not equal; otherwise, false.

Implements

System.IEquatable<T>
System.IEquatable<T>
ICloneable<T>
System.IEquatable<T>
IInterfaceUriBindingContainer
IInterfaceUri
IBindingContainer
ICloneable<T>
System.IEquatable<T>
IArgBaseContainer
System.IEquatable<T>

See Also

Runner
In This Article
Back to top Copyright Bastian Eicher et al