Class BehaviorOptions
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Behaviors.Configuration
Assembly: Cephalon.Behaviors.dll
Top-level behavior options read from the Engine:Behaviors configuration section.
public sealed class BehaviorOptionsInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Properties
Section titled “Properties”AutoRegister
Section titled “ AutoRegister”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; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”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.
AutoRegisterAssemblies
Section titled “ AutoRegisterAssemblies”Gets or sets the list of assembly names to scan for auto-registration.
When empty and Cephalon.Abstractions,
excluding well-known framework prefixes and any entries in
public List<string> AutoRegisterAssemblies { get; set; }Property Value
Section titled “Property Value”AutoRegisterExcludeAssemblyPrefixes
Section titled “ AutoRegisterExcludeAssemblyPrefixes”Gets or sets additional assembly name prefixes to exclude from auto-registration scanning.
Only effective when System.,
Microsoft., etc.) — use this property to add project-specific exclusions
such as “MyCompany.Shared.” or “ThirdParty.”.
public List<string> AutoRegisterExcludeAssemblyPrefixes { get; set; }