Class GenerateMessageFilterAttribute
- Namespace
- PatternKit.Generators.Messaging
- Assembly
- PatternKit.Generators.Abstractions.dll
Generates a typed message-filter factory for a partial class or struct.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = false, Inherited = false)]
public sealed class GenerateMessageFilterAttribute : Attribute
- Inheritance
-
GenerateMessageFilterAttribute
- Inherited Members
Constructors
GenerateMessageFilterAttribute(Type)
Creates a message-filter generator attribute.
public GenerateMessageFilterAttribute(Type payloadType)
Parameters
payloadTypeType
Properties
FactoryName
Name of the generated factory method.
public string FactoryName { get; set; }
Property Value
FilterName
Name assigned to the generated message filter.
public string FilterName { get; set; }
Property Value
PayloadType
Payload type filtered by the generated message filter.
public Type PayloadType { get; }
Property Value
RejectionReason
Reason returned when no allow rule matches.
public string RejectionReason { get; set; }