Commit 277308d
authored
This pull request makes minor improvements to the
`ServiceCollectionExtensions.cs` file by cleaning up unused `using`
directives and adding a new service registration for
`FieldCalculationMap`. These changes enhance code readability and extend
functionality.
### Code cleanup:
* Removed unused `using` directives such as `System.Linq`,
`MigrationTools._EngineV1.Containers`,
`MigrationTools.EndpointEnrichers`, `MigrationTools.Options`, and
`Serilog` to improve code clarity.
(`[src/MigrationTools.Clients.TfsObjectModel/ServiceCollectionExtensions.csL2-L14](diffhunk://#diff-cd74f67f83d1e426c050179996963d643cf3466f4861d6c2d0a92376d72363ffL2-L14)`)
### Functional enhancement:
* Added a new transient service registration for `FieldCalculationMap`
in the `AddMigrationToolServicesForClientLegacyAzureDevOpsObjectModel`
method, enabling its use within the dependency injection container.
(`[src/MigrationTools.Clients.TfsObjectModel/ServiceCollectionExtensions.csR82](diffhunk://#diff-cd74f67f83d1e426c050179996963d643cf3466f4861d6c2d0a92376d72363ffR82)`)
Fixes #2863
File tree
1 file changed
+15
-19
lines changed- src/MigrationTools.Clients.TfsObjectModel
1 file changed
+15
-19
lines changedLines changed: 15 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | | - | |
8 | | - | |
9 | 6 | | |
10 | 7 | | |
11 | | - | |
12 | 8 | | |
13 | 9 | | |
14 | | - | |
15 | 10 | | |
16 | 11 | | |
17 | 12 | | |
| |||
30 | 25 | | |
31 | 26 | | |
32 | 27 | | |
33 | | - | |
| 28 | + | |
34 | 29 | | |
35 | 30 | | |
36 | 31 | | |
| |||
72 | 67 | | |
73 | 68 | | |
74 | 69 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
88 | 84 | | |
89 | 85 | | |
90 | 86 | | |
| |||
0 commit comments