ข้ามไปยังเนื้อหา

Class EventSubscriptionExecutionContext

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Eventing.Services
Assembly: Cephalon.Eventing.dll

Describes the host-agnostic execution context delivered to a managed event-subscription executor.

public sealed class EventSubscriptionExecutionContext

objectEventSubscriptionExecutionContext

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

EventSubscriptionExecutionContext(EventSubscriptionDescriptor, EventPublication, int, IReadOnlyDictionary<string, string>?)

Section titled “ EventSubscriptionExecutionContext(EventSubscriptionDescriptor, EventPublication, int, IReadOnlyDictionary<string, string>?)”

Creates a new managed event-subscription execution context.

public EventSubscriptionExecutionContext(EventSubscriptionDescriptor subscription, EventPublication publication, int attempt = 1, IReadOnlyDictionary<string, string>? metadata = null)

subscription EventSubscriptionDescriptor

The declared subscription that is being executed.

publication EventPublication

The staged publication being delivered to the subscription.

attempt int

The current managed execution attempt.

metadata IReadOnlyDictionary<string, string>?

Optional operator-facing metadata associated with the current execution attempt.

Gets the current managed execution attempt number.

public int Attempt { get; }

int

Gets operator-facing metadata associated with the current execution attempt.

public IReadOnlyDictionary<string, string> Metadata { get; }

IReadOnlyDictionary<string, string>

Gets the staged publication being delivered to the managed subscription.

public EventPublication Publication { get; }

EventPublication

Gets the declared subscription that is currently being executed.

public EventSubscriptionDescriptor Subscription { get; }

EventSubscriptionDescriptor