CepStream.ClipEventDuration<TSource, TClip> Method (CepStream<TSource>, CepStream<TClip>, Expression<Func<TSource, TClip, Boolean>>)
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
)
public:
generic<typename TSource, typename TClip>
[ExtensionAttribute]
static CepStream<TSource>^ ClipEventDuration(
CepStream<TSource>^ sourceStream,
CepStream<TClip>^ clipStream,
Expression<Func<TSource, TClip, bool>^>^ matchExpression
)
static member ClipEventDuration<'TSource, 'TClip> :
sourceStream:CepStream<'TSource> *
clipStream:CepStream<'TClip> *
matchExpression:Expression<Func<'TSource, 'TClip, bool>> -> CepStream<'TSource>
<ExtensionAttribute>
Public Shared Function ClipEventDuration(Of TSource, TClip) (
sourceStream As CepStream(Of TSource),
clipStream As CepStream(Of TClip),
matchExpression As Expression(Of Func(Of TSource, TClip, Boolean))
) As CepStream(Of TSource)
Parameters
sourceStream
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TSource>The stream that contains the events to be clipped.
clipStream
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TClip>The stream that contains the events that determine the clipping behavior for sourceStream.
matchExpression
Type: System.Linq.Expressions.Expression<Func<TSource, TClip, Boolean>>The expression used to match events from sourceStream and clipStream.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TSource>
An event stream with clipped lifetimes.
Type Parameters
- TSource
The type of payload in sourceStream.
- TClip
The type of payload in clip stream.
See Also
CepStream Class
Microsoft.ComplexEventProcessing.Linq Namespace
Return to top