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

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