Skip to content

chore: Add default params to cancellation token for backwards compatibility#412

Merged
singhk97 merged 1 commit intomainfrom
kavin/add-default-params
Apr 2, 2026
Merged

chore: Add default params to cancellation token for backwards compatibility#412
singhk97 merged 1 commit intomainfrom
kavin/add-default-params

Conversation

@singhk97
Copy link
Copy Markdown
Collaborator

@singhk97 singhk97 commented Apr 2, 2026

Since this is a protected method it could've been overriden, adding the default param ensures that the cancellation token need not be provided. This prevents breaking when bumping from < 2.0.6 versions where the param was not there in the first place.

Copilot AI review requested due to automatic review settings April 2, 2026 18:15
@corinagum corinagum self-assigned this Apr 2, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the default sign-in invoke handlers in Microsoft.Teams.Apps to make their CancellationToken parameter optional, aiming to reduce breaking changes for callers that previously didn’t pass a token.

Changes:

  • Added = default to the CancellationToken parameter for three protected sign-in activity handlers.
  • Keeps existing routing registrations that pass context.CancellationToken intact while allowing direct calls to omit the token.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Libraries/Microsoft.Teams.Apps/AppRouting.cs
Comment thread Libraries/Microsoft.Teams.Apps/AppRouting.cs
Comment thread Libraries/Microsoft.Teams.Apps/AppRouting.cs
Comment thread Libraries/Microsoft.Teams.Apps/AppRouting.cs
@singhk97 singhk97 merged commit 3fd94a2 into main Apr 2, 2026
11 checks passed
@singhk97 singhk97 deleted the kavin/add-default-params branch April 2, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants