Renaming Microsoft.Framework.* -> Microsoft.Extensions.*
This commit is contained in:
Родитель
a514aabded
Коммит
15bda75631
|
@ -1,4 +1,4 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio 14
|
# Visual Studio 14
|
||||||
VisualStudioVersion = 14.0.23107.0
|
VisualStudioVersion = 14.0.23107.0
|
||||||
|
@ -7,11 +7,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{D26F6F80-63E
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{88B347C1-CCEC-4827-9564-FFF07C9BF7C7}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{88B347C1-CCEC-4827-9564-FFF07C9BF7C7}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Framework.DependencyInjection", "src\Microsoft.Framework.DependencyInjection\Microsoft.Framework.DependencyInjection.xproj", "{07ABDD98-9974-48CB-8265-53D1A8EC9E34}"
|
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Extensions.DependencyInjection", "src\Microsoft.Extensions.DependencyInjection\Microsoft.Extensions.DependencyInjection.xproj", "{07ABDD98-9974-48CB-8265-53D1A8EC9E34}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Framework.DependencyInjection.Tests", "test\Microsoft.Framework.DependencyInjection.Tests\Microsoft.Framework.DependencyInjection.Tests.xproj", "{20201277-5461-49EF-811B-63ED3CD274EF}"
|
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Extensions.DependencyInjection.Tests", "test\Microsoft.Extensions.DependencyInjection.Tests\Microsoft.Extensions.DependencyInjection.Tests.xproj", "{20201277-5461-49EF-811B-63ED3CD274EF}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Framework.DependencyInjection.Abstractions", "src\Microsoft.Framework.DependencyInjection.Abstractions\Microsoft.Framework.DependencyInjection.Abstractions.xproj", "{4E959D3B-2E0D-4296-B22C-D428DED294F0}"
|
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Extensions.DependencyInjection.Abstractions", "src\Microsoft.Extensions.DependencyInjection.Abstractions\Microsoft.Extensions.DependencyInjection.Abstractions.xproj", "{4E959D3B-2E0D-4296-B22C-D428DED294F0}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
"StrictSemanticVersionValidationRule"
|
"StrictSemanticVersionValidationRule"
|
||||||
],
|
],
|
||||||
"packages": {
|
"packages": {
|
||||||
"Microsoft.Framework.DependencyInjection": { },
|
"Microsoft.Extensions.DependencyInjection": { },
|
||||||
"Microsoft.Framework.DependencyInjection.Abstractions": { }
|
"Microsoft.Extensions.DependencyInjection.Abstractions": { }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Default": { // Rules to run for packages not listed in any other set.
|
"Default": { // Rules to run for packages not listed in any other set.
|
||||||
|
|
|
@ -6,9 +6,9 @@ using System.Linq;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.ExceptionServices;
|
using System.Runtime.ExceptionServices;
|
||||||
using Microsoft.Framework.DependencyInjection.Abstractions;
|
using Microsoft.Extensions.DependencyInjection.Abstractions;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Helper code for the various activator services.
|
/// Helper code for the various activator services.
|
|
@ -1,13 +1,13 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Microsoft.Framework.DependencyInjection.Abstractions;
|
using Microsoft.Extensions.DependencyInjection.Abstractions;
|
||||||
using Microsoft.Framework.Internal;
|
using Microsoft.Extensions.Internal;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Extensions
|
namespace Microsoft.Extensions.DependencyInjection.Extensions
|
||||||
{
|
{
|
||||||
public static class ServiceCollectionExtensions
|
public static class ServiceCollectionExtensions
|
||||||
{
|
{
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specifies the contract for a collection of service descriptors.
|
/// Specifies the contract for a collection of service descriptors.
|
|
@ -3,12 +3,12 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The <see cref="System.IDisposable.Dispose"/> method ends the scope lifetime. Once Dispose
|
/// The <see cref="System.IDisposable.Dispose"/> method ends the scope lifetime. Once Dispose
|
||||||
/// is called, any scoped services that have been resolved from
|
/// is called, any scoped services that have been resolved from
|
||||||
/// <see cref="Microsoft.Framework.DependencyInjection.IServiceScope.ServiceProvider"/> will be
|
/// <see cref="Microsoft.Extensions.DependencyInjection.IServiceScope.ServiceProvider"/> will be
|
||||||
/// disposed.
|
/// disposed.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IServiceScope : IDisposable
|
public interface IServiceScope : IDisposable
|
|
@ -1,19 +1,19 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
public interface IServiceScopeFactory
|
public interface IServiceScopeFactory
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create an <see cref="Microsoft.Framework.DependencyInjection.IServiceScope"/> which
|
/// Create an <see cref="Microsoft.Extensions.DependencyInjection.IServiceScope"/> which
|
||||||
/// contains an <see cref="System.IServiceProvider"/> used to resolve dependencies from a
|
/// contains an <see cref="System.IServiceProvider"/> used to resolve dependencies from a
|
||||||
/// newly created scope.
|
/// newly created scope.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>
|
/// <returns>
|
||||||
/// An <see cref="Microsoft.Framework.DependencyInjection.IServiceScope"/> controlling the
|
/// An <see cref="Microsoft.Extensions.DependencyInjection.IServiceScope"/> controlling the
|
||||||
/// lifetime of the scope. Once this is disposed, any scoped services that have been resolved
|
/// lifetime of the scope. Once this is disposed, any scoped services that have been resolved
|
||||||
/// from the <see cref="Microsoft.Framework.DependencyInjection.IServiceScope.ServiceProvider"/>
|
/// from the <see cref="Microsoft.Extensions.DependencyInjection.IServiceScope.ServiceProvider"/>
|
||||||
/// will also be disposed.
|
/// will also be disposed.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
IServiceScope CreateScope();
|
IServiceScope CreateScope();
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The result of <see cref="ActivatorUtilities.CreateFactory(Type, Type[])"/>.
|
/// The result of <see cref="ActivatorUtilities.CreateFactory(Type, Type[])"/>.
|
|
@ -5,6 +5,6 @@ using System.Reflection;
|
||||||
using System.Resources;
|
using System.Resources;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
[assembly: InternalsVisibleTo("Microsoft.Framework.DependencyInjection.Tests")]
|
[assembly: InternalsVisibleTo("Microsoft.Extensions.DependencyInjection.Tests")]
|
||||||
[assembly: AssemblyMetadata("Serviceable", "True")]
|
[assembly: AssemblyMetadata("Serviceable", "True")]
|
||||||
[assembly: NeutralResourcesLanguage("en-us")]
|
[assembly: NeutralResourcesLanguage("en-us")]
|
|
@ -1,5 +1,5 @@
|
||||||
// <auto-generated />
|
// <auto-generated />
|
||||||
namespace Microsoft.Framework.DependencyInjection.Abstractions
|
namespace Microsoft.Extensions.DependencyInjection.Abstractions
|
||||||
{
|
{
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
@ -8,7 +8,7 @@ namespace Microsoft.Framework.DependencyInjection.Abstractions
|
||||||
internal static class Resources
|
internal static class Resources
|
||||||
{
|
{
|
||||||
private static readonly ResourceManager _resourceManager
|
private static readonly ResourceManager _resourceManager
|
||||||
= new ResourceManager("Microsoft.Framework.DependencyInjection.Abstractions.Resources", typeof(Resources).GetTypeInfo().Assembly);
|
= new ResourceManager("Microsoft.Extensions.DependencyInjection.Abstractions.Resources", typeof(Resources).GetTypeInfo().Assembly);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Multiple constructors accepting all given argument types have been found in type '{0}'. There should only be one applicable constructor.
|
/// Multiple constructors accepting all given argument types have been found in type '{0}'. There should only be one applicable constructor.
|
|
@ -2,9 +2,9 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using Microsoft.Framework.Internal;
|
using Microsoft.Extensions.Internal;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
public static class ServiceCollectionExtensions
|
public static class ServiceCollectionExtensions
|
||||||
{
|
{
|
|
@ -4,10 +4,10 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using Microsoft.Framework.DependencyInjection.Abstractions;
|
using Microsoft.Extensions.DependencyInjection.Abstractions;
|
||||||
using Microsoft.Framework.Internal;
|
using Microsoft.Extensions.Internal;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
[DebuggerDisplay("Lifetime = {Lifetime}, ServiceType = {ServiceType}, ImplementationType = {ImplementationType}")]
|
[DebuggerDisplay("Lifetime = {Lifetime}, ServiceType = {ServiceType}, ImplementationType = {ImplementationType}")]
|
||||||
public class ServiceDescriptor
|
public class ServiceDescriptor
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
public enum ServiceLifetime
|
public enum ServiceLifetime
|
||||||
{
|
{
|
|
@ -3,10 +3,10 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Microsoft.Framework.DependencyInjection.Abstractions;
|
using Microsoft.Extensions.DependencyInjection.Abstractions;
|
||||||
using Microsoft.Framework.Internal;
|
using Microsoft.Extensions.Internal;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
public static class ServiceProviderExtensions
|
public static class ServiceProviderExtensions
|
||||||
{
|
{
|
|
@ -9,7 +9,7 @@
|
||||||
"warningsAsErrors": true
|
"warningsAsErrors": true
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.Framework.NotNullAttribute.Sources": { "version": "1.0.0-*", "type": "build" }
|
"Microsoft.Extensions.NotNullAttribute.Sources": { "version": "1.0.0-*", "type": "build" }
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net45": {
|
"net45": {
|
|
@ -5,7 +5,7 @@ using System.Reflection;
|
||||||
using System.Resources;
|
using System.Resources;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
[assembly: InternalsVisibleTo("Microsoft.Framework.DependencyInjection.Tests")]
|
[assembly: InternalsVisibleTo("Microsoft.Extensions.DependencyInjection.Tests")]
|
||||||
[assembly: AssemblyMetadata("Serviceable", "True")]
|
[assembly: AssemblyMetadata("Serviceable", "True")]
|
||||||
[assembly: NeutralResourcesLanguage("en-us")]
|
[assembly: NeutralResourcesLanguage("en-us")]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// <auto-generated />
|
// <auto-generated />
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
@ -8,7 +8,7 @@ namespace Microsoft.Framework.DependencyInjection
|
||||||
internal static class Resources
|
internal static class Resources
|
||||||
{
|
{
|
||||||
private static readonly ResourceManager _resourceManager
|
private static readonly ResourceManager _resourceManager
|
||||||
= new ResourceManager("Microsoft.Framework.DependencyInjection.Resources", typeof(Resources).GetTypeInfo().Assembly);
|
= new ResourceManager("Microsoft.Extensions.DependencyInjection.Resources", typeof(Resources).GetTypeInfo().Assembly);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unable to activate type '{0}'. The following constructors are ambigious:
|
/// Unable to activate type '{0}'. The following constructors are ambigious:
|
|
@ -4,7 +4,7 @@
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Default implementation of <see cref="IServiceCollection"/>.
|
/// Default implementation of <see cref="IServiceCollection"/>.
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
public static class ServiceCollectionExtensions
|
public static class ServiceCollectionExtensions
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@ using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
internal class ClosedIEnumerableService : IService
|
internal class ClosedIEnumerableService : IService
|
||||||
{
|
{
|
|
@ -1,9 +1,9 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
internal class ConstantCallSite : IServiceCallSite
|
internal class ConstantCallSite : IServiceCallSite
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
@ -7,7 +7,7 @@ using System.Linq.Expressions;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.ExceptionServices;
|
using System.Runtime.ExceptionServices;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
internal class ConstructorCallSite : IServiceCallSite
|
internal class ConstructorCallSite : IServiceCallSite
|
||||||
{
|
{
|
|
@ -1,11 +1,11 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
using System.Runtime.ExceptionServices;
|
using System.Runtime.ExceptionServices;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
internal class CreateInstanceCallSite : IServiceCallSite
|
internal class CreateInstanceCallSite : IServiceCallSite
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@ using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
internal class FactoryService : IService, IServiceCallSite
|
internal class FactoryService : IService, IServiceCallSite
|
||||||
{
|
{
|
|
@ -4,7 +4,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
internal class GenericService : IGenericService
|
internal class GenericService : IGenericService
|
||||||
{
|
{
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
internal interface IGenericService
|
internal interface IGenericService
|
||||||
{
|
{
|
|
@ -4,7 +4,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
internal interface IService
|
internal interface IService
|
||||||
{
|
{
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for IServiceCallSite
|
/// Summary description for IServiceCallSite
|
|
@ -5,7 +5,7 @@ using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for InstanceService
|
/// Summary description for InstanceService
|
|
@ -4,7 +4,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
internal class OpenIEnumerableService : IGenericService
|
internal class OpenIEnumerableService : IGenericService
|
||||||
{
|
{
|
|
@ -7,7 +7,7 @@ using System.Diagnostics;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
internal class Service : IService
|
internal class Service : IService
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
internal class ServiceEntry
|
internal class ServiceEntry
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@ using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
internal class ServiceProviderService : IService, IServiceCallSite
|
internal class ServiceProviderService : IService, IServiceCallSite
|
||||||
{
|
{
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
internal class ServiceScope : IServiceScope
|
internal class ServiceScope : IServiceScope
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
internal class ServiceScopeFactory : IServiceScopeFactory
|
internal class ServiceScopeFactory : IServiceScopeFactory
|
||||||
{
|
{
|
|
@ -7,7 +7,7 @@ using System.Linq;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
internal class ServiceScopeService : IService, IServiceCallSite
|
internal class ServiceScopeService : IService, IServiceCallSite
|
||||||
{
|
{
|
|
@ -7,7 +7,7 @@ using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
internal class ServiceTable
|
internal class ServiceTable
|
||||||
{
|
{
|
|
@ -8,9 +8,9 @@ using System.Linq.Expressions;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.Framework.DependencyInjection.ServiceLookup;
|
using Microsoft.Extensions.DependencyInjection.ServiceLookup;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The default IServiceProvider.
|
/// The default IServiceProvider.
|
|
@ -9,8 +9,8 @@
|
||||||
"warningsAsErrors": true
|
"warningsAsErrors": true
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.Framework.DependencyInjection.Abstractions": "1.0.0-*",
|
"Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0-*",
|
||||||
"Microsoft.Framework.NotNullAttribute.Sources": { "version": "1.0.0-*", "type": "build" }
|
"Microsoft.Extensions.NotNullAttribute.Sources": { "version": "1.0.0-*", "type": "build" }
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net45": { },
|
"net45": { },
|
|
@ -4,10 +4,10 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Microsoft.Framework.DependencyInjection.Tests.Fakes;
|
using Microsoft.Extensions.DependencyInjection.Tests.Fakes;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Abstractions.Tests
|
namespace Microsoft.Extensions.DependencyInjection.Abstractions.Tests
|
||||||
{
|
{
|
||||||
public class ActivatorUtilitiesTests
|
public class ActivatorUtilitiesTests
|
||||||
{
|
{
|
|
@ -4,10 +4,10 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Microsoft.Framework.DependencyInjection.Tests.Fakes;
|
using Microsoft.Extensions.DependencyInjection.Tests.Fakes;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests
|
namespace Microsoft.Extensions.DependencyInjection.Tests
|
||||||
{
|
{
|
||||||
public abstract class AllContainerTestsBase
|
public abstract class AllContainerTestsBase
|
||||||
{
|
{
|
|
@ -5,11 +5,11 @@ using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
using Microsoft.Framework.DependencyInjection.ServiceLookup;
|
using Microsoft.Extensions.DependencyInjection.ServiceLookup;
|
||||||
using Microsoft.Framework.DependencyInjection.Tests.Fakes;
|
using Microsoft.Extensions.DependencyInjection.Tests.Fakes;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests
|
namespace Microsoft.Extensions.DependencyInjection.Tests
|
||||||
{
|
{
|
||||||
public class CallSiteTests
|
public class CallSiteTests
|
||||||
{
|
{
|
|
@ -2,10 +2,10 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using Microsoft.Framework.DependencyInjection.Tests.Fakes;
|
using Microsoft.Extensions.DependencyInjection.Tests.Fakes;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests
|
namespace Microsoft.Extensions.DependencyInjection.Tests
|
||||||
{
|
{
|
||||||
public class CircularDependencyTests
|
public class CircularDependencyTests
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public abstract class AbstractClass
|
public abstract class AbstractClass
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class AnotherClass
|
public class AnotherClass
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class AnotherClassAcceptingData
|
public class AnotherClassAcceptingData
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class CircularDependencyGeneric<TDependency>
|
public class CircularDependencyGeneric<TDependency>
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class DirectCircularDependencyA
|
public class DirectCircularDependencyA
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class DirectCircularDependencyB
|
public class DirectCircularDependencyB
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public interface ISelfCircularDependencyWithInterface
|
public interface ISelfCircularDependencyWithInterface
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class IndirectCircularDependencyA
|
public class IndirectCircularDependencyA
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class IndirectCircularDependencyB
|
public class IndirectCircularDependencyB
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class IndirectCircularDependencyC
|
public class IndirectCircularDependencyC
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
// A
|
// A
|
||||||
// / | \
|
// / | \
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class NoCircularDependencySameTypeMultipleTimesB
|
public class NoCircularDependencySameTypeMultipleTimesB
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class NoCircularDependencySameTypeMultipleTimesC
|
public class NoCircularDependencySameTypeMultipleTimesC
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class SelfCircularDependency
|
public class SelfCircularDependency
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class SelfCircularDependencyGeneric<TDependency>
|
public class SelfCircularDependencyGeneric<TDependency>
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class SelfCircularDependencyWithInterface : ISelfCircularDependencyWithInterface
|
public class SelfCircularDependencyWithInterface : ISelfCircularDependencyWithInterface
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class ClassWithAmbiguousCtors
|
public class ClassWithAmbiguousCtors
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
public class ClassWithInternalConstructor
|
public class ClassWithInternalConstructor
|
||||||
{
|
{
|
|
@ -1,9 +1,9 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class ClassWithNestedReferencesToProvider : IDisposable
|
public class ClassWithNestedReferencesToProvider : IDisposable
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class ClassWithOptionalArgsCtor
|
public class ClassWithOptionalArgsCtor
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class ClassWithPrivateCtor
|
public class ClassWithPrivateCtor
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
public class ClassWithProtectedConstructor
|
public class ClassWithProtectedConstructor
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class ClassWithStaticCtor
|
public class ClassWithStaticCtor
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class ClassWithThrowingCtor
|
public class ClassWithThrowingCtor
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class ClassWithThrowingEmptyCtor
|
public class ClassWithThrowingEmptyCtor
|
||||||
{
|
{
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class CreationCountFakeService
|
public class CreationCountFakeService
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class DependOnNonexistentService : IDependOnNonexistentService
|
public class DependOnNonexistentService : IDependOnNonexistentService
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
public class DependsOnServiceWithoutImplementation
|
public class DependsOnServiceWithoutImplementation
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class FakeOpenGenericService<T> : IFakeOpenGenericService<T>
|
public class FakeOpenGenericService<T> : IFakeOpenGenericService<T>
|
||||||
{
|
{
|
|
@ -4,7 +4,7 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class FakeOuterService : IFakeOuterService
|
public class FakeOuterService : IFakeOuterService
|
||||||
{
|
{
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class FakeService : IFakeEveryService, IDisposable
|
public class FakeService : IFakeEveryService, IDisposable
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public interface IDependOnNonexistentService
|
public interface IDependOnNonexistentService
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public interface IFactoryService
|
public interface IFactoryService
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
interface IFakeEveryService :
|
interface IFakeEveryService :
|
||||||
IFakeService,
|
IFakeService,
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public interface IFakeMultipleService : IFakeService
|
public interface IFakeMultipleService : IFakeService
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public interface IFakeOpenGenericService<T>
|
public interface IFakeOpenGenericService<T>
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public interface IFakeOuterService
|
public interface IFakeOuterService
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public interface IFakeScopedService : IFakeService
|
public interface IFakeScopedService : IFakeService
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public interface IFakeService
|
public interface IFakeService
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
interface IFakeServiceInstance : IFakeService
|
interface IFakeServiceInstance : IFakeService
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
interface IFakeSingletonService : IFakeService
|
interface IFakeSingletonService : IFakeService
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public interface INonexistentService
|
public interface INonexistentService
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
public interface IServiceWithoutImplementation
|
public interface IServiceWithoutImplementation
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class ScopedFactoryService
|
public class ScopedFactoryService
|
||||||
{
|
{
|
|
@ -1,9 +1,9 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using Microsoft.Framework.DependencyInjection.Tests.Fakes;
|
using Microsoft.Extensions.DependencyInjection.Tests.Fakes;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests
|
namespace Microsoft.Extensions.DependencyInjection.Tests
|
||||||
{
|
{
|
||||||
public class ServiceAcceptingFactoryService
|
public class ServiceAcceptingFactoryService
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public static class TestServices
|
public static class TestServices
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests.Fakes
|
namespace Microsoft.Extensions.DependencyInjection.Tests.Fakes
|
||||||
{
|
{
|
||||||
public class TransientFactoryService : IFactoryService
|
public class TransientFactoryService : IFactoryService
|
||||||
{
|
{
|
|
@ -5,10 +5,10 @@ using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using Microsoft.Framework.DependencyInjection.Tests.Fakes;
|
using Microsoft.Extensions.DependencyInjection.Tests.Fakes;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.Tests
|
namespace Microsoft.Extensions.DependencyInjection.Tests
|
||||||
{
|
{
|
||||||
public abstract class ScopingContainerTestBase : AllContainerTestsBase
|
public abstract class ScopingContainerTestBase : AllContainerTestsBase
|
||||||
{
|
{
|
|
@ -3,13 +3,13 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using Microsoft.AspNet.Testing;
|
using Microsoft.AspNet.Testing;
|
||||||
using Microsoft.Framework.DependencyInjection.Extensions;
|
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||||
using Microsoft.Framework.DependencyInjection.Tests.Fakes;
|
using Microsoft.Extensions.DependencyInjection.Tests.Fakes;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
using AbstractionResources = Microsoft.Framework.DependencyInjection.Abstractions.Resources;
|
using AbstractionResources = Microsoft.Extensions.DependencyInjection.Abstractions.Resources;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
public class ServiceCollectionExtensionTest
|
public class ServiceCollectionExtensionTest
|
||||||
{
|
{
|
|
@ -1,11 +1,11 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using Microsoft.Framework.DependencyInjection.Extensions;
|
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||||
using Microsoft.Framework.DependencyInjection.Tests.Fakes;
|
using Microsoft.Extensions.DependencyInjection.Tests.Fakes;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
public class ServiceCollectionTests
|
public class ServiceCollectionTests
|
||||||
{
|
{
|
|
@ -1,15 +1,15 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using Microsoft.Framework.DependencyInjection.Extensions;
|
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||||
using Microsoft.Framework.DependencyInjection.Tests.Fakes;
|
using Microsoft.Extensions.DependencyInjection.Tests.Fakes;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
|
||||||
{
|
{
|
||||||
public class ServiceTest
|
public class ServiceTest
|
||||||
{
|
{
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче