Table of Contents

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

eventType Type
topic string
endpointName string
handlerMethodName string

Properties

EndpointName

Backplane endpoint that receives the subscription.

public string EndpointName { get; }

Property Value

string

EventType

Event payload type consumed by the subscription.

public Type EventType { get; }

Property Value

Type

HandlerMethodName

Method on the services type used as the event handler.

public string HandlerMethodName { get; }

Property Value

string

Topic

Topic address consumed by the subscription.

public string Topic { get; }

Property Value

string