Table of Contents

Class BackplaneRequestReplyAttribute

Namespace
PatternKit.Generators.Messaging
Assembly
PatternKit.Generators.Abstractions.dll

Declares a generated request/reply command endpoint and route.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = true, Inherited = false)]
public sealed class BackplaneRequestReplyAttribute : Attribute
Inheritance
BackplaneRequestReplyAttribute
Inherited Members

Constructors

BackplaneRequestReplyAttribute(Type, Type, string, string)

Creates a request/reply route declaration.

public BackplaneRequestReplyAttribute(Type requestType, Type responseType, string endpointName, string handlerMethodName)

Parameters

requestType Type
responseType Type
endpointName string
handlerMethodName string

Properties

EndpointName

Backplane endpoint that receives the request.

public string EndpointName { get; }

Property Value

string

HandlerMethodName

Method on the services type used as the request handler.

public string HandlerMethodName { get; }

Property Value

string

PredicateMethodName

Optional static predicate method on the topology type. When omitted, this is the default route for the request type.

public string? PredicateMethodName { get; set; }

Property Value

string

RequestType

Request payload type routed by the generated topology.

public Type RequestType { get; }

Property Value

Type

ResponseType

Response payload type returned by the request handler.

public Type ResponseType { get; }

Property Value

Type