forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dependency Injection support for ValueTypes as Services (dotnet#59625)
* Dependency Injection support for ValueTypes as Services The only that was thing missing to support ValueTypes as Services was box the result when visiting constructors call sites. I am also fixing several tests that were building the ServiceProvider using the default engine, instead of relying on each specific engine. fix dotnet#42160 * addressing pr feedback regarding tests
- Loading branch information
1 parent
77bd789
commit 52d46c9
Showing
4 changed files
with
113 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...ft.Extensions.DependencyInjection/tests/DI.Tests/Fakes/StructServiceWithNoDependencies.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using Microsoft.Extensions.DependencyInjection.Specification.Fakes; | ||
|
||
namespace Microsoft.Extensions.DependencyInjection.Fakes | ||
{ | ||
public struct StructServiceWithNoDependencies: IFakeService | ||
{ | ||
public StructServiceWithNoDependencies() | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters