Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BotToBot to use new DeliveryModes.Stream #30

Open
tracyboehrer opened this issue Jan 13, 2025 · 0 comments
Open

BotToBot to use new DeliveryModes.Stream #30

tracyboehrer opened this issue Jan 13, 2025 · 0 comments
Assignees
Labels
feature-request Used to mark a issue that is proposed to be a feature addition or change

Comments

@tracyboehrer
Copy link
Member

tracyboehrer commented Jan 13, 2025

Simplify BotToBot.Bot1 to use reply streaming.

// Forward whatever C2 sent to the channel until a result is returned.
var result = await channel.SendActivityForResultAsync<object>(
    turnContext.Activity,
    async (activity) =>
    {
        // Just repeat message to C2
        await turnContext.SendActivityAsync(MessageFactory.Text($"({channel.DisplayName}) {activity.Text}"), cancellationToken);
    },
    cancellationToken);

See #29

@tracyboehrer tracyboehrer added the feature-request Used to mark a issue that is proposed to be a feature addition or change label Jan 13, 2025
@tracyboehrer tracyboehrer self-assigned this Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Used to mark a issue that is proposed to be a feature addition or change
Projects
None yet
Development

No branches or pull requests

1 participant