mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
12 lines
387 B
C#
12 lines
387 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
namespace Microsoft.Agents.Workflows.UnitTests;
|
|
|
|
internal sealed class ForwardMessageExecutor<TMessage> : Executor where TMessage : notnull
|
|
{
|
|
protected override RouteBuilder ConfigureRoutes(RouteBuilder routeBuilder)
|
|
{
|
|
return routeBuilder.AddHandler<TMessage>((message, ctx) => ctx.SendMessageAsync(message));
|
|
}
|
|
}
|