Class ExcludeKindsAttribute
Indicates which message kinds a middleware component should exclude from processing.
[AttributeUsage(AttributeTargets.Class)]
public sealed class ExcludeKindsAttribute : Attribute
- Inheritance
-
ExcludeKindsAttribute
- Inherited Members
- Extension Methods
Remarks
This attribute allows declarative configuration of middleware exclusions based on message kinds. When applied to a middleware class, it specifies which message kinds should be excluded from processing, even if they would otherwise be included by the ApplicableMessageKinds property. This is useful for creating middleware that handles most message types except specific ones.
Constructors
ExcludeKindsAttribute(MessageKinds)
Indicates which message kinds a middleware component should exclude from processing.
public ExcludeKindsAttribute(MessageKinds messageKinds)
Parameters
messageKindsMessageKindsThe message kinds to exclude from processing.
Remarks
This attribute allows declarative configuration of middleware exclusions based on message kinds. When applied to a middleware class, it specifies which message kinds should be excluded from processing, even if they would otherwise be included by the ApplicableMessageKinds property. This is useful for creating middleware that handles most message types except specific ones.
Properties
ExcludedKinds
Gets the message kinds to exclude from processing.
public MessageKinds ExcludedKinds { get; }
Property Value
- MessageKinds
The message kinds that should be skipped by the middleware.