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
source
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TPayload>The stream that contains the events whose duration is going to be changed.
eventDurationFunc
Type: System.Linq.Expressions.Expression<Func<CepEvent<TPayload>, TimeSpan>>The expression that defines the new event duration.
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