Table of Contents

Class HistoryEvent

Namespace
DurableTask.Core.History
Assembly
DurableTask.Core.dll

Base class for history events

[DataContract]
[KnownType(typeof(ExecutionStartedEvent))]
[KnownType(typeof(ExecutionCompletedEvent))]
[KnownType(typeof(ExecutionTerminatedEvent))]
[KnownType(typeof(TaskCompletedEvent))]
[KnownType(typeof(TaskFailedEvent))]
[KnownType(typeof(TaskScheduledEvent))]
[KnownType(typeof(SubOrchestrationInstanceCreatedEvent))]
[KnownType(typeof(SubOrchestrationInstanceCompletedEvent))]
[KnownType(typeof(SubOrchestrationInstanceFailedEvent))]
[KnownType(typeof(TimerCreatedEvent))]
[KnownType(typeof(TimerFiredEvent))]
[KnownType(typeof(OrchestratorStartedEvent))]
[KnownType(typeof(OrchestratorCompletedEvent))]
[KnownType(typeof(EventSentEvent))]
[KnownType(typeof(EventRaisedEvent))]
[KnownType(typeof(ContinueAsNewEvent))]
[KnownType(typeof(HistoryStateEvent))]
public abstract class HistoryEvent : IExtensibleDataObject
Inheritance
HistoryEvent
Implements
IExtensibleDataObject
Derived
Inherited Members

Constructors

HistoryEvent(int)

Creates a new history event with the supplied event id

protected HistoryEvent(int eventId)

Parameters

eventId int

The integer event id

Properties

EventId

Gets the event id

[DataMember]
public int EventId { get; }

Property Value

int

EventType

Gets the event type

[DataMember]
public virtual EventType EventType { get; }

Property Value

EventType

ExtensionData

Implementation for System.Runtime.Serialization.IExtensibleDataObject.ExtensionData.

public ExtensionDataObject ExtensionData { get; set; }

Property Value

ExtensionDataObject

IsPlayed

Gets the IsPlayed status

[DataMember]
public bool IsPlayed { get; }

Property Value

bool

Timestamp

Gets the event timestamp

[DataMember]
public DateTime Timestamp { get; }

Property Value

DateTime