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
Properties
EndpointName
Backplane endpoint that receives the request.
public string EndpointName { get; }
Property Value
HandlerMethodName
Method on the services type used as the request handler.
public string HandlerMethodName { get; }
Property Value
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
RequestType
Request payload type routed by the generated topology.
public Type RequestType { get; }
Property Value
ResponseType
Response payload type returned by the request handler.
public Type ResponseType { get; }