Class BackplaneSubscriptionAttribute
- Namespace
- PatternKit.Generators.Messaging
- Assembly
- PatternKit.Generators.Abstractions.dll
Declares a generated publish/subscribe topic subscription.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = true, Inherited = false)]
public sealed class BackplaneSubscriptionAttribute : Attribute
- Inheritance
-
BackplaneSubscriptionAttribute
- Inherited Members
Constructors
BackplaneSubscriptionAttribute(Type, string, string, string)
Creates a subscription declaration.
public BackplaneSubscriptionAttribute(Type eventType, string topic, string endpointName, string handlerMethodName)
Parameters
Properties
EndpointName
Backplane endpoint that receives the subscription.
public string EndpointName { get; }
Property Value
EventType
Event payload type consumed by the subscription.
public Type EventType { get; }
Property Value
HandlerMethodName
Method on the services type used as the event handler.
public string HandlerMethodName { get; }
Property Value
Topic
Topic address consumed by the subscription.
public string Topic { get; }