目录

类 AgentsApp

命名空间
Microsoft.AutoGen.Core
程序集
Microsoft.AutoGen.Core.dll
public class AgentsApp
继承
AgentsApp
继承的成员

构造函数

AgentsApp(IHost)

public AgentsApp(IHost host)

参数

host IHost

属性

AgentRuntime

public IAgentRuntime AgentRuntime { get; }

属性值

IAgentRuntime

ApplicationLifetime

public IHostApplicationLifetime ApplicationLifetime { get; }

属性值

IHostApplicationLifetime

Host

public IHost Host { get; }

属性值

IHost

Services

public IServiceProvider Services { get; }

属性值

IServiceProvider

方法

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

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

参数

message TMessage
topic TopicId
messageId string
cancellationToken CancellationToken

返回值

ValueTask

类型参数

TMessage

ShutdownAsync()

public ValueTask ShutdownAsync()

返回值

ValueTask

StartAsync()

public ValueTask StartAsync()

返回值

ValueTask

WaitForShutdownAsync()

public Task WaitForShutdownAsync()

返回值

Task