QStreamable.AlterEventDuration<TPayload> Method

Alters the duration of events without affecting start time.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function AlterEventDuration(Of TPayload) ( _
    source As IQStreamable(Of TPayload), _
    durationSelector As Expression(Of Func(Of CepEvent(Of TPayload), TimeSpan)) _
) As IQStreamable(Of TPayload)
'Usage
Dim source As IQStreamable(Of TPayload)
Dim durationSelector As Expression(Of Func(Of CepEvent(Of TPayload), TimeSpan))
Dim returnValue As IQStreamable(Of TPayload)

returnValue = source.AlterEventDuration(durationSelector)
public static IQStreamable<TPayload> AlterEventDuration<TPayload>(
    this IQStreamable<TPayload> source,
    Expression<Func<CepEvent<TPayload>, TimeSpan>> durationSelector
)
[ExtensionAttribute]
public:
generic<typename TPayload>
static IQStreamable<TPayload>^ AlterEventDuration(
    IQStreamable<TPayload>^ source, 
    Expression<Func<CepEvent<TPayload>^, TimeSpan>^>^ durationSelector
)
static member AlterEventDuration : 
        source:IQStreamable<'TPayload> * 
        durationSelector:Expression<Func<CepEvent<'TPayload>, TimeSpan>> -> IQStreamable<'TPayload> 
JScript does not support generic types and methods.

Type Parameters

  • TPayload
    The payload type.

Parameters

Return Value

Type: Microsoft.ComplexEventProcessing.Linq.IQStreamable<TPayload>
The altered stream.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQStreamable<TPayload>. 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.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.111).

See Also

Reference

QStreamable Class

Microsoft.ComplexEventProcessing.Linq Namespace