Table of Contents

Class TypePrefixSubscriptionAttribute

Namespace
Microsoft.AutoGen.Core
Assembly
Microsoft.AutoGen.Core.dll
[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

string

Methods

Bind(AgentType)

Binds the subscription to a specific agent type, creating a concrete ISubscriptionDefinition.

public ISubscriptionDefinition Bind(AgentType agentType)

Parameters

agentType AgentType

The agent type to associate with the subscription.

Returns

ISubscriptionDefinition

A new ISubscriptionDefinition bound to the specified agent type.