EdgeEvent<TPayload> Class

An edge event represents either the start or end of a CEP event.

Inheritance Hierarchy

System.Object
  Microsoft.ComplexEventProcessing.EventInstance
    Microsoft.ComplexEventProcessing.TypedEvent<TPayload>
      Microsoft.ComplexEventProcessing.EdgeEvent<TPayload>

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

Syntax

public sealed class EdgeEvent<TPayload> : TypedEvent<TPayload>

Type Parameters

  • TPayload
    Type of the payload of the edge event.

The EdgeEvent<TPayload> type exposes the following members.

Properties

  Name Description
Public property EdgeType Gets the edge type.
Public property EndTime Gets or sets the valid end time of the event. This value is ignored if this is a start edge event.
Public property EventKind Gets the kind of the event. (Inherited from TypedEvent<TPayload>.)
Public property Payload Gets or sets the payload of the event. (Inherited from TypedEvent<TPayload>.)
Public property StartTime Gets or sets the valid start time of the event. This value is ignored if this is an end edge event.

Top

Methods

  Name Description
Public methodStatic member CreateCti Creates a CTI in a stream of edge events.
Public methodStatic member CreateEnd Creates an edge end event with the specified payload.
Public methodStatic member CreateStart Creates an edge start event with the specified payload.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

As opposed to single interval events, which are fully specified in terms of their start and end time, edge events need to be given in pairs. An edge event of type Start indicates the beginning of the event lifetime, and a matching End event indicates the end of the event lifetime. For more information on edge events, see StreamInsight Server Concepts.

Edge events are typically used to model a discrete signal, where the arrival of the new signal value is not known in advance. Such a pattern entails the submission of an end event regarding the previous start event, followed by a start event for the new value. Note that the end event has to match the start time of the Start event as well as payload. For more information about creating event types, see [CreatingEventTypes]Creating Event Types.

Examples

EdgeEvent{TPayload} ev = CreateInsertEvent(EdgeType.Start);
ev.StartTime = DateTime.Now;
ev.Payload = ...
EnqueueOperationResult result = Enqueue(ref ev);

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.ComplexEventProcessing Namespace