Skip to content

Interface IBehaviorModuleBuilder

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

Collects behavior ownership declarations contributed by a Cephalon module.

public interface IBehaviorModuleBuilder

This builder is host-agnostic and only declares which behaviors a module owns. Public REST exposure stays in host adapters such as ASP.NET Core.

Declares that the current module owns the specified behavior.

IBehaviorModuleBuilder Add<TBehavior>() where TBehavior : class

IBehaviorModuleBuilder

The same builder for fluent ownership registration.

TBehavior

The concrete behavior type owned by the module.

Add<TBehavior>(Action<IBehaviorTopologyBuilder>)

Section titled “ Add<TBehavior>(Action<IBehaviorTopologyBuilder>)”

Declares that the current module owns the specified behavior and supplies an explicit topology override.

IBehaviorModuleBuilder Add<TBehavior>(Action<IBehaviorTopologyBuilder> configureTopology) where TBehavior : class

configureTopology Action<IBehaviorTopologyBuilder>

The callback that selects the resolved behavior topology when attribute-only synthesis is not enough.

IBehaviorModuleBuilder

The same builder for fluent ownership registration.

TBehavior

The concrete behavior type owned by the module.