Class AppliesToAttribute
Indicates which message kinds a middleware component applies to.
[AttributeUsage(AttributeTargets.Class)]
public sealed class AppliesToAttribute : Attribute
- Inheritance
-
AppliesToAttribute
- Inherited Members
- Extension Methods
Remarks
This attribute allows declarative configuration of middleware applicability based on message kinds. When applied to a middleware class, it overrides the ApplicableMessageKinds property of IDispatchMiddleware. Multiple message kinds can be specified using the flags enum pattern.
Constructors
AppliesToAttribute(MessageKinds)
Indicates which message kinds a middleware component applies to.
public AppliesToAttribute(MessageKinds messageKinds)
Parameters
messageKindsMessageKindsThe message kinds this middleware applies to.
Remarks
This attribute allows declarative configuration of middleware applicability based on message kinds. When applied to a middleware class, it overrides the ApplicableMessageKinds property of IDispatchMiddleware. Multiple message kinds can be specified using the flags enum pattern.
Properties
MessageKinds
Gets the message kinds this middleware applies to.
public MessageKinds MessageKinds { get; }
Property Value
- MessageKinds
The message kinds supported by the middleware.