[This is preliminary documentation and is subject to change.]
Represents a piece of logic that can be applied to different entities declaratively as attribute or through configuration.
Behaviors are a form of inversion-of-control that allows to configure entities by code which itself can be injected by name from configuration.
Behaviors are a form of aspect-oriented programming as they allow to proclaim certain "behavior" that knows how to implement itself on various
application components (i.e. some behavior may inject Glue message inspector or log destination).
Behaviors can be used to enforce policies by performing pre-run checks and throw exceptions if certain required providers are not injected/configured
System Object
System Attribute NFX.Environment BehaviorNamespace: NFX.EnvironmentAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
[AttributeUsageAttribute(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
public abstract class Behavior : Attribute,
IConfigurable
[AttributeUsageAttribute(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
public abstract class Behavior : Attribute,
IConfigurable
<AttributeUsageAttribute(AttributeTargets.Class, Inherited := true, AllowMultiple := false)>
Public MustInherit Class Behavior
Inherits Attribute
Implements IConfigurable
<AttributeUsageAttribute(AttributeTargets.Class, Inherited := true, AllowMultiple := false)>
Public MustInherit Class Behavior
Inherits Attribute
Implements IConfigurable
[AttributeUsageAttribute(AttributeTargets::Class, Inherited = true, AllowMultiple = false)]
public ref class Behavior abstract : public Attribute,
IConfigurable
[AttributeUsageAttribute(AttributeTargets::Class, Inherited = true, AllowMultiple = false)]
public ref class Behavior abstract : public Attribute,
IConfigurable
[<AbstractClassAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, Inherited = true, AllowMultiple = false)>]
type Behavior =
class
inherit Attribute
interface IConfigurable
end
[<AbstractClassAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, Inherited = true, AllowMultiple = false)>]
type Behavior =
class
inherit Attribute
interface IConfigurable
end