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

Class InMemorySagaChoreographyPublisher

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

Namespace: Cephalon.Behaviors.Patterns.Publishers
Assembly: Cephalon.Behaviors.Patterns.dll

Stores choreography publications in memory for local development, tests, and diagnostics.

public sealed class InMemorySagaChoreographyPublisher : ISagaChoreographyPublisher

objectInMemorySagaChoreographyPublisher

ISagaChoreographyPublisher

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

Gets the publications that have been accepted by this publisher.

public IReadOnlyList<SagaChoreographyPublication> PublishedPublications { get; }

IReadOnlyList<SagaChoreographyPublication>

PublishAsync(SagaChoreographyPublication, CancellationToken)

Section titled “ PublishAsync(SagaChoreographyPublication, CancellationToken)”

Publishes one choreography publication through the active choreography handoff path.

public ValueTask PublishAsync(SagaChoreographyPublication publication, CancellationToken cancellationToken = default)

publication SagaChoreographyPublication

The publication to stage.

cancellationToken CancellationToken

A token that cancels the publication.

ValueTask

A task that completes when the publication has been accepted.