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

Class BehaviorOptions

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

Namespace: Cephalon.Behaviors.Configuration
Assembly: Cephalon.Behaviors.dll

Top-level behavior options read from the Engine:Behaviors configuration section.

public sealed class BehaviorOptions

objectBehaviorOptions

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

Gets or sets whether the engine automatically discovers and registers behaviors from loaded assemblies. When true, the engine scans assemblies for concrete types decorated with [AppBehavior] and implementing IAppBehavior<TIn, TOut>, registering any that have not already been registered manually.

public bool AutoRegister { get; set; }

bool

Explicit module-owned behavior registration through BehaviorModuleBase and RestBehaviorModuleBase is now the preferred default path. Use auto-registration as an opt-in fallback for legacy, exploratory, or convention-driven scenarios that still rely on assembly scanning.

Gets or sets the list of assembly names to scan for auto-registration. When empty and is true, the engine scans all loaded assemblies that reference Cephalon.Abstractions, excluding well-known framework prefixes and any entries in .

public List<string> AutoRegisterAssemblies { get; set; }

List<string>

Gets or sets additional assembly name prefixes to exclude from auto-registration scanning. Only effective when is empty (default scan mode). The engine already excludes well-known framework prefixes (System., Microsoft., etc.) — use this property to add project-specific exclusions such as “MyCompany.Shared.” or “ThirdParty.”.

public List<string> AutoRegisterExcludeAssemblyPrefixes { get; set; }

List<string>