Table of Contents

Class TimeSpanProperty

Namespace
Bonsai.Expressions
Assembly
Bonsai.Core.dll

Represents a workflow property containing a time interval.

Property sources expose a value which can be set from the property grid and also generate an observable sequence that emits a notification whenever the property value changes, starting with the initial property value.

Tip

Property sources are commonly used to create new configuration parameters with custom names for nested workflows. To expose and rename a property source, use Property Mapping to externalize the property value and set its DisplayName.

public class TimeSpanProperty : WorkflowProperty
Inheritance
TimeSpanProperty
Inherited Members

Properties

Value

Gets or sets the value of the property.

public TimeSpan Value { get; set; }

Property Value

TimeSpan

Methods

Generate()

Generates an observable sequence that produces a value whenever the workflow property changes, starting with the initial property value.

public virtual IObservable<TimeSpan> Generate()

Returns

IObservable<TimeSpan>

An observable sequence of property values.

Generate<TSource>(IObservable<TSource>)

Generates an observable sequence that produces a value whenever the source sequence emits a new element.

public IObservable<TimeSpan> Generate<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The source sequence used to generate new values.

Returns

IObservable<TimeSpan>

An observable sequence of property values.

Type Parameters

TSource

The type of the elements in the source sequence.