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

Class BehaviorTopologyDescriptor

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

Namespace: Cephalon.Abstractions.Behaviors
Assembly: Cephalon.Abstractions.dll

Describes the resolved topology for a single behavior, including its pattern, transports, feature flags, and shared logical API surface.

public sealed class BehaviorTopologyDescriptor

objectBehaviorTopologyDescriptor

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

BehaviorTopologyDescriptor(string, string, IReadOnlyList<string>, bool, bool, bool, BehaviorApiSurfaceDescriptor?, string?, string?, IReadOnlyList<string>?, string?, IReadOnlyDictionary<string, string>?)

Section titled “ BehaviorTopologyDescriptor(string, string, IReadOnlyList<string>, bool, bool, bool, BehaviorApiSurfaceDescriptor?, string?, string?, IReadOnlyList<string>?, string?, IReadOnlyDictionary<string, string>?)”

Initializes a new instance of .

public BehaviorTopologyDescriptor(string id, string pattern, IReadOnlyList<string> transportIds, bool inboxEnabled = false, bool outboxEnabled = false, bool eventSourcingEnabled = false, BehaviorApiSurfaceDescriptor? apiSurface = null, string? displayName = null, string? description = null, IReadOnlyList<string>? requiredFeatureFlagIds = null, string? sourceModuleId = null, IReadOnlyDictionary<string, string>? metadata = null)

id string

pattern string

transportIds IReadOnlyList<string>

inboxEnabled bool

outboxEnabled bool

eventSourcingEnabled bool

apiSurface BehaviorApiSurfaceDescriptor?

displayName string?

description string?

requiredFeatureFlagIds IReadOnlyList<string>?

sourceModuleId string?

metadata IReadOnlyDictionary<string, string>?

Gets the logical public API surface projected by route-shaped transport adapters.

public BehaviorApiSurfaceDescriptor ApiSurface { get; }

BehaviorApiSurfaceDescriptor

When no explicit API surface is supplied, the descriptor derives one from the behavior identifier so route-shaped transports can project canonical paths without hard-coding the behavior id into every transport binding.

Gets the optional description.

public string? Description { get; }

string?

Gets the optional display name.

public string? DisplayName { get; }

string?

Gets a value indicating whether event sourcing is wired into the behavior context.

public bool EventSourcingEnabled { get; }

bool

Gets the behavior identifier.

public string Id { get; }

string

Gets a value indicating whether inbox deduplication is enabled.

public bool InboxEnabled { get; }

bool

Gets additional metadata.

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

IReadOnlyDictionary<string, string>

Gets a value indicating whether outbox staging is enabled.

public bool OutboxEnabled { get; }

bool

Gets the pattern identifier (e.g. “cqrs”, “event-driven”, “saga-step”, “saga-choreography”, “process-manager”, “durable-execution”, “direct”).

public string Pattern { get; }

string

Gets the ordered feature-flag identifiers that must resolve to enabled before the behavior can execute.

public IReadOnlyList<string> RequiredFeatureFlagIds { get; }

IReadOnlyList<string>

Gets the module identifier that owns this behavior when ownership is known at runtime.

public string? SourceModuleId { get; }

string?

Gets the transport identifiers configured for this behavior.

public IReadOnlyList<string> TransportIds { get; }

IReadOnlyList<string>