Table of Contents

Class AgentsApp

Namespace
Microsoft.AutoGen.Core
Assembly
Microsoft.AutoGen.Core.dll
public class AgentsApp
Inheritance
AgentsApp
Inherited Members

Constructors

AgentsApp(IHost)

public AgentsApp(IHost host)

Parameters

host IHost

Properties

AgentRuntime

public IAgentRuntime AgentRuntime { get; }

Property Value

IAgentRuntime

ApplicationLifetime

public IHostApplicationLifetime ApplicationLifetime { get; }

Property Value

IHostApplicationLifetime

Host

public IHost Host { get; }

Property Value

IHost

Services

public IServiceProvider Services { get; }

Property Value

IServiceProvider

Methods

PublishMessageAsync<TMessage>(TMessage, TopicId, string?, CancellationToken)

public ValueTask PublishMessageAsync<TMessage>(TMessage message, TopicId topic, string? messageId = null, CancellationToken cancellationToken = default) where TMessage : notnull

Parameters

message TMessage
topic TopicId
messageId string
cancellationToken CancellationToken

Returns

ValueTask

Type Parameters

TMessage

ShutdownAsync()

public ValueTask ShutdownAsync()

Returns

ValueTask

StartAsync()

public ValueTask StartAsync()

Returns

ValueTask

WaitForShutdownAsync()

public Task WaitForShutdownAsync()

Returns

Task