IFunction Interface

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

Base interface for command line, web tools and daemons.

public interface IFunction : IPlugin, IExtension, IExpando, IDynamicMetaObjectProvider, IEnumerable<KeyValuePair<string, object>>, IEnumerable, ICloneable

Properties

Log Gets or sets the output from the last run.
Output Gets or sets a writer where the tool can write its output.
Result Gets or sets the result of the last run.

Methods

Run(CancellationToken, String[]) Performs the work of the tool.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
IsRunnable(IFunction) Returns a value indicating whether a function is in a state where it is safe to run.
Status(IFunction) Returns a status string.
Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.