Skip to content
This repository was archived by the owner on Nov 2, 2018. It is now read-only.

Commit 702e9a7

Browse files
author
Praburaj
committed
Remove dependency on DependencyInjection and instead use DependencyInjection.Interfaces on Http.Extensions
Fixes: aspnet/HttpAbstractions#228
1 parent 48e2a97 commit 702e9a7

File tree

14 files changed

+71
-89
lines changed

14 files changed

+71
-89
lines changed

DependencyInjection.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 14
4-
VisualStudioVersion = 14.0.22613.0
4+
VisualStudioVersion = 14.0.22710.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{D26F6F80-63EE-4081-A814-EF3DBABE24D9}"
77
EndProject

src/Microsoft.Framework.DependencyInjection/ActivatorUtilities.cs renamed to src/Microsoft.Framework.DependencyInjection.Interfaces/ActivatorUtilities.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Linq.Expressions;
77
using System.Reflection;
88
using System.Runtime.ExceptionServices;
9+
using Microsoft.Framework.DependencyInjection.Interfaces;
910

1011
namespace Microsoft.Framework.DependencyInjection
1112
{
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
4+
using System.Runtime.CompilerServices;
5+
6+
[assembly: InternalsVisibleTo("Microsoft.Framework.DependencyInjection.Tests")]

src/Microsoft.Framework.DependencyInjection.Interfaces/Properties/Resources.Designer.cs

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Microsoft.Framework.DependencyInjection.Interfaces/Resources.resx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,18 @@
117117
<resheader name="writer">
118118
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120+
<data name="AmbiguousConstructorMatch" xml:space="preserve">
121+
<value>Multiple constructors accepting all given argument types have been found in type '{0}'. There should only be one applicable constructor.</value>
122+
<comment>{0} = service type</comment>
123+
</data>
124+
<data name="CannotLocateImplementation" xml:space="preserve">
125+
<value>Unable to locate implementation '{0}' for service '{1}'.</value>
126+
<comment>{0} = implementation type, {1} = service type</comment>
127+
</data>
128+
<data name="CannotResolveService" xml:space="preserve">
129+
<value>Unable to resolve service for type '{0}' while attempting to activate '{1}'.</value>
130+
<comment>{0} = service which cannot be resolved, {1} = service being activated</comment>
131+
</data>
120132
<data name="NoConstructorMatch" xml:space="preserve">
121133
<value>Unable to locate suitable constructor for type '{0}'. Ensure the type is concrete and all parameters are accepted by a constructor.</value>
122134
<comment>{0} = service type</comment>

src/Microsoft.Framework.DependencyInjection.Interfaces/project.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"System.Diagnostics.Debug": "4.0.10-beta-*",
1515
"System.Globalization": "4.0.10-beta-*",
1616
"System.Linq": "4.0.0-beta-*",
17+
"System.Linq.Expressions": "4.0.10-beta-*",
1718
"System.Reflection": "4.0.10-beta-*",
1819
"System.Resources.ResourceManager": "4.0.0-beta-*"
1920
}
@@ -24,6 +25,7 @@
2425
"System.Diagnostics.Debug": "",
2526
"System.Globalization": "",
2627
"System.Linq": "",
28+
"System.Linq.Expressions": "",
2729
"System.Runtime": "",
2830
"System.Reflection": "",
2931
"System.Resources.ResourceManager": ""

src/Microsoft.Framework.DependencyInjection/Properties/Resources.Designer.cs

Lines changed: 0 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Microsoft.Framework.DependencyInjection/Resources.resx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,6 @@
117117
<resheader name="writer">
118118
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120-
<data name="AmbiguousConstructorMatch" xml:space="preserve">
121-
<value>Multiple constructors accepting all given argument types have been found in type '{0}'. There should only be one applicable constructor.</value>
122-
<comment>{0} = service type</comment>
123-
</data>
124-
<data name="CannotLocateImplementation" xml:space="preserve">
125-
<value>Unable to locate implementation '{0}' for service '{1}'.</value>
126-
<comment>{0} = implementation type, {1} = service type</comment>
127-
</data>
128120
<data name="CannotResolveService" xml:space="preserve">
129121
<value>Unable to resolve service for type '{0}' while attempting to activate '{1}'.</value>
130122
<comment>{0} = service which cannot be resolved, {1} = service being activated</comment>
@@ -133,12 +125,4 @@
133125
<value>A circular dependency was detected for the service of type '{0}'.</value>
134126
<comment>{0} = service type with circular dependency</comment>
135127
</data>
136-
<data name="NoConstructorMatch" xml:space="preserve">
137-
<value>Unable to locate suitable constructor for type '{0}'. Ensure the type is concrete and all parameters are accepted by a constructor.</value>
138-
<comment>{0} = service type</comment>
139-
</data>
140-
<data name="NoServiceRegistered" xml:space="preserve">
141-
<value>No service for type '{0}' has been registered.</value>
142-
<comment>{0} = service type</comment>
143-
</data>
144128
</root>

src/Microsoft.Framework.DependencyInjection/ServiceCollection.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4-
using System;
54
using System.Collections;
65
using System.Collections.Generic;
7-
using Microsoft.Framework.Internal;
86

97
namespace Microsoft.Framework.DependencyInjection
108
{

src/Microsoft.Framework.DependencyInjection/ServiceCollectionExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System;
5-
using Microsoft.Framework.Internal;
65

76
namespace Microsoft.Framework.DependencyInjection
87
{

src/Microsoft.Framework.DependencyInjection/ServiceProvider.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System;
55
using System.Collections.Concurrent;
66
using System.Collections.Generic;
7-
using System.Linq;
87
using System.Linq.Expressions;
98
using System.Reflection;
109
using System.Threading;

src/Microsoft.Framework.DependencyInjection/project.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,13 @@
1212
"dnxcore50": {
1313
"dependencies": {
1414
"System.Collections.Concurrent": "4.0.10-beta-*",
15-
"System.Linq.Expressions": "4.0.10-beta-*",
1615
"System.Threading": "4.0.10-beta-*",
1716
"System.Threading.Tasks": "4.0.10-beta-*"
1817
}
1918
},
2019
".NETPortable,Version=v4.6,Profile=Profile151": {
2120
"frameworkAssemblies": {
2221
"System.Collections.Concurrent": "",
23-
"System.ComponentModel": "",
24-
"System.Linq.Expressions": "",
2522
"System.Threading": "",
2623
"System.Threading.Tasks": ""
2724
}

test/Microsoft.Framework.DependencyInjection.Tests/ActivatorUtilitiesTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using Microsoft.Framework.DependencyInjection.Tests.Fakes;
88
using Xunit;
99

10-
namespace Microsoft.Framework.DependencyInjection.Tests
10+
namespace Microsoft.Framework.DependencyInjection.Interfaces.Tests
1111
{
1212
public class ActivatorUtilitiesTests
1313
{

0 commit comments

Comments
 (0)