Skip to content

Use dependency injection in AzDev #27457

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

Closed
wants to merge 1 commit into from
Closed

Conversation

isra-fel
Copy link
Member

Description

This PR leverages the official dependency injection solution Microsoft.Extensions.DependencyInjection to handle components/services.

It also updates target framework from netstandard2.0 to net8.0 because (a) the tool doesn't have to support both PS 5.1/7 (b) to workaround an assembly loading issue with Microsoft.Bcl.AsyncInterfaces.

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • For SDK-based development mode, update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • For autorest-based development mode, include the changelog in the PR description.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

try di

fix bcl

readme

remove redundant dep
@isra-fel
Copy link
Member Author

Implemented in #27509

@isra-fel isra-fel closed this Apr 17, 2025
@isra-fel isra-fel deleted the azdev-di branch April 17, 2025 04:40
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.

1 participant