CepStream.ClipEventDuration<TSource, TClip> Method
Shortens the lifetime of events in sourceStream to the start time of the next corresponding event in clipStream matched by matchExpression.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public static CepStream<TSource> ClipEventDuration<TSource, TClip>(
this CepStream<TSource> sourceStream,
CepStream<TClip> clipStream,
Expression<Func<TSource, TClip, bool>> matchExpression
)
Type Parameters
- TSource
Type of payload in sourceStream.
- TClip
Type of payload in sourceStream.
Parameters
- sourceStream
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TSource>
Stream that contains the events to be clipped.
- clipStream
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TClip>
Expression used to match events from sourceStream and clipStream.
- matchExpression
Type: System.Linq.Expressions.Expression<Func<TSource, TClip, Boolean>>
Expression used to match events from sourceStream and clipStream.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TSource>
Type of payload in sourceStream.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type CepStream<TSource>. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=sql.105) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.105).
Remarks
For more information, see “Clipping the Duration of an Event” in Time Stamp Modifications.