Class TypePrefixSubscriptionAttribute
[AttributeUsage(AttributeTargets.All)]
public class TypePrefixSubscriptionAttribute : Attribute, IUnboundSubscriptionDefinition
- Inheritance
-
TypePrefixSubscriptionAttribute
- Implements
- Inherited Members
Constructors
TypePrefixSubscriptionAttribute(string)
public TypePrefixSubscriptionAttribute(string topic)
Parameters
topic
string
Properties
Topic
public string Topic { get; }
Property Value
Methods
Bind(AgentType)
Binds the subscription to a specific agent type, creating a concrete ISubscriptionDefinition.
public ISubscriptionDefinition Bind(AgentType agentType)
Parameters
agentType
AgentTypeThe agent type to associate with the subscription.
Returns
- ISubscriptionDefinition
A new ISubscriptionDefinition bound to the specified agent type.