CepStream.AlterEventDuration<TPayload> Method (CepStream<TPayload>, Expression<Func<CepEvent<TPayload>, TimeSpan>>)

 

Changes the duration of the input events. This method does not change the start time of an event.

Namespace:   Microsoft.ComplexEventProcessing.Linq
Assembly:  Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)

Syntax

public static CepStream<TPayload> AlterEventDuration<TPayload>(
    this CepStream<TPayload> source,
    Expression<Func<CepEvent<TPayload>, TimeSpan>> eventDurationFunc
)
public:
generic<typename TPayload>
[ExtensionAttribute]
static CepStream<TPayload>^ AlterEventDuration(
    CepStream<TPayload>^ source,
    Expression<Func<CepEvent<TPayload>^, TimeSpan>^>^ eventDurationFunc
)
static member AlterEventDuration<'TPayload> : 
        source:CepStream<'TPayload> *
        eventDurationFunc:Expression<Func<CepEvent<'TPayload>, TimeSpan>> -> CepStream<'TPayload>
<ExtensionAttribute>
Public Shared Function AlterEventDuration(Of TPayload) (
    source As CepStream(Of TPayload),
    eventDurationFunc As Expression(Of Func(Of CepEvent(Of TPayload), TimeSpan))
) As CepStream(Of TPayload)

Parameters

Return Value

Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TPayload>

A stream with new event durations.

Type Parameters

  • TPayload
    The type of payload in input stream.

See Also

CepStream Class
Microsoft.ComplexEventProcessing.Linq Namespace

Return to top