Class Interpolator<TIn, TResult>
Defines a base abstract class for stream interpolators.
Inheritance
Interpolator<TIn, TResult>
Namespace: Microsoft.Psi
Assembly: Microsoft.Psi.dll
Syntax
public abstract class Interpolator<TIn, TResult> : object
Type Parameters
Name | Description |
---|---|
TIn | The type of the input messages. |
TResult | The type of the interpolation result. |
Constructors
View SourceInterpolator()
Initializes a new instance of the Interpolator<TIn, TResult> class.
Declaration
public Interpolator()
Methods
View SourceInterpolate(DateTime, IEnumerable<Message<TIn>>, Nullable<DateTime>)
Interpolates a set of messages at a given time.
Declaration
public abstract InterpolationResult<TResult> Interpolate(DateTime interpolationTime, IEnumerable<Message<TIn>> messages, DateTime? closedOriginatingTime)
Parameters
Type | Name | Description |
---|---|---|
DateTime | interpolationTime | The time to interpolate. |
IEnumerable<Message<TIn>> | messages | The set of messages from a stream. |
System.Nullable<DateTime> | closedOriginatingTime | An optional date-time that, when present, indicates at what time the stream was closed. |
Returns
Type | Description |
---|---|
InterpolationResult<TResult> | An interpolation result InterpolationResult<T>. |