Table of Contents

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

payloadType Type

Properties

FactoryName

Name of the generated factory method.

public string FactoryName { get; set; }

Property Value

string

FilterName

Name assigned to the generated message filter.

public string FilterName { get; set; }

Property Value

string

PayloadType

Payload type filtered by the generated message filter.

public Type PayloadType { get; }

Property Value

Type

RejectionReason

Reason returned when no allow rule matches.

public string RejectionReason { get; set; }

Property Value

string