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

Interface IBehaviorCollectionBuilder

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

Namespace: Cephalon.Behaviors.Services
Assembly: Cephalon.Behaviors.dll

Provides a fluent API for registering application behaviors with their topology, DI lifetime, and type registry entries.

public interface IBehaviorCollectionBuilder

PatternBehaviorExtensions.AddBehaviorPatterns(IBehaviorCollectionBuilder), MessagingBehaviorBindingServiceCollectionExtensions.AddMessagingBehaviorBindings(IBehaviorCollectionBuilder, IConfiguration), MessagingBehaviorBindingServiceCollectionExtensions.AddMessagingBehaviorBindings(IBehaviorCollectionBuilder), MessagingBehaviorBindingServiceCollectionExtensions.AddMessagingBehaviorBindings(IBehaviorCollectionBuilder, Action<InMemoryTransportOptions>?, Action<RabbitMqTransportOptions>?, Action<KafkaTransportOptions>?)

Gets the underlying so that transport packs and other extensions can register their own services.

IServiceCollection Services { get; }

IServiceCollection

Register<TBehavior>(Action<BehaviorTopologyBuilder>?)

Section titled “ Register<TBehavior>(Action<BehaviorTopologyBuilder>?)”

Registers a behavior of type TBehavior with the runtime.

IBehaviorCollectionBuilder Register<TBehavior>(Action<BehaviorTopologyBuilder>? configureTopology = null) where TBehavior : class

configureTopology Action<BehaviorTopologyBuilder>?

An optional callback that configures the behavior’s transport topology. When null, topology is resolved from configuration.

IBehaviorCollectionBuilder

The same builder for fluent chaining.

TBehavior

The concrete behavior type. Must be decorated with and implement .