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

feat(core): make DependencyAttribute's implementation argument optional #109

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

jonisavo
Copy link
Owner

If no implementation is given, it is expected to be the same as the dependency. This should make it easier to declare concrete dependencies i.e. [Dependency(typeof(CounterService))].

This resolves part of #104.

If no implementation is given, it is expected to be the same as the dependency. This should make it easier to declare concrete dependencies i.e. `[Dependency(typeof(CounterService))]`.
@jonisavo jonisavo added enhancement New feature or request runtime This issue or pull request relates to runtime functionality source-generation This issue or pull request relates to source generation labels Sep 25, 2023
@jonisavo jonisavo added this to the 1.0 milestone Sep 25, 2023
@codecov
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

Merging #109 (494bfe7) into main (45c8458) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #109   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           55        55           
  Lines         1656      1658    +2     
=========================================
+ Hits          1656      1658    +2     
Flag Coverage Δ
automated 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...ators/DependencyInjection/DependencyDescription.cs 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jonisavo jonisavo merged commit f797b4e into main Sep 25, 2023
11 checks passed
@jonisavo jonisavo deleted the feature/optional-dependency-implementation branch September 25, 2023 07:54
github-actions bot pushed a commit that referenced this pull request Sep 25, 2023
…al (#109)

If no implementation is given, it is expected to be the same as the dependency. This should make it easier to declare concrete dependencies i.e. `[Dependency(typeof(CounterService))]`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request runtime This issue or pull request relates to runtime functionality source-generation This issue or pull request relates to source generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant