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 IBehaviorCollectionBuilderExtension Methods
Section titled “Extension Methods”PatternBehaviorExtensions.AddBehaviorPatterns(IBehaviorCollectionBuilder), MessagingBehaviorBindingServiceCollectionExtensions.AddMessagingBehaviorBindings(IBehaviorCollectionBuilder, IConfiguration), MessagingBehaviorBindingServiceCollectionExtensions.AddMessagingBehaviorBindings(IBehaviorCollectionBuilder), MessagingBehaviorBindingServiceCollectionExtensions.AddMessagingBehaviorBindings(IBehaviorCollectionBuilder, Action<InMemoryTransportOptions>?, Action<RabbitMqTransportOptions>?, Action<KafkaTransportOptions>?)
Properties
Section titled “Properties”Services
Section titled “ Services”Gets the underlying
IServiceCollection Services { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”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 : classParameters
Section titled “Parameters”configureTopology Action<BehaviorTopologyBuilder>?
An optional callback that configures the behavior’s transport topology. When null, topology is resolved from configuration.
Returns
Section titled “Returns”The same builder for fluent chaining.
Type Parameters
Section titled “Type Parameters”TBehavior
The concrete behavior type. Must be decorated with