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

[C#] refactor: fix warnings and issues in code #944

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

blackchoey
Copy link
Contributor

@blackchoey blackchoey commented Nov 30, 2023

Linked issues

closes: #861

Details

  1. Fix warnings in the code
  2. Add cancellation token parameter to interface
  3. Mark bot/message extension/adaptive card base class as internal - we can change them to public in the future if we want to developers to leverage them. For now, they should be internal implementation.
  4. Add Async to function names
  5. Remove TeamsSsoAdaptiveCardAuthentication class as it's not supported temporary
  6. Fix a bug that cannot read token from MSAL OBO token cache by using the ILongRunningWebApi interface
  7. Fix a bug that token exchange route selector may throw exception

Attestation Checklist

  • My code follows the style guidelines of this project

  • I have checked for/fixed spelling, linting, and other errors

  • I have commented my code for clarity

  • I have made corresponding changes to the documentation (we use TypeDoc to document our code)

  • My changes generate no new warnings

  • I have added tests that validates my changes, and provides sufficient test coverage. I have tested with:

    • Local testing
    • E2E testing in Teams
  • New and existing unit tests pass locally with my changes

@blackchoey blackchoey changed the title [C#] refactor: fix warnings in code [C#] refactor: fix warnings and issues in code Nov 30, 2023
@singhk97 singhk97 merged commit 1f7b921 into breaking-changes-2 Nov 30, 2023
7 checks passed
@singhk97 singhk97 deleted the chyuan/fix-warnings branch November 30, 2023 19:27
singhk97 pushed a commit that referenced this pull request Dec 6, 2023
## Linked issues

closes: #861 

## Details

1. Fix warnings in the code
2. Add cancellation token parameter to interface
3. Mark bot/message extension/adaptive card base class as internal - we
can change them to public in the future if we want to developers to
leverage them. For now, they should be internal implementation.
4. Add `Async` to function names
5. Remove `TeamsSsoAdaptiveCardAuthentication` class as it's not
supported temporary
6. Fix a bug that cannot read token from MSAL OBO token cache by using
the `ILongRunningWebApi` interface
7. Fix a bug that token exchange route selector may throw exception

## Attestation Checklist

- [x] My code follows the style guidelines of this project

- I have checked for/fixed spelling, linting, and other errors
- I have commented my code for clarity
- I have made corresponding changes to the documentation (we use
[TypeDoc](https://typedoc.org/) to document our code)
- My changes generate no new warnings
- I have added tests that validates my changes, and provides sufficient
test coverage. I have tested with:
  - Local testing
  - E2E testing in Teams
- New and existing unit tests pass locally with my changes
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.

2 participants