Table of Contents

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

List<ArgBase>

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

string

XmlTagName

protected override string XmlTagName { get; }

Property Value

string

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

Runner

The new copy of the Runner.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(Runner?)

protected bool Equals(Runner? other)

Parameters

other Runner

Returns

bool

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

string

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

left Runner

The left object

right Runner

The right object

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

left Runner

The left object

right Runner

The right object

Returns

bool

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

See Also