Table of Contents

Class InternalServiceCollectionMap

Namespace
Microsoft.EntityFrameworkCore.Infrastructure.Internal
Assembly
Microsoft.EntityFrameworkCore.dll

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public class InternalServiceCollectionMap : IInternalServiceCollectionMap
Inheritance
InternalServiceCollectionMap
Implements
Inherited Members

Constructors

InternalServiceCollectionMap(IServiceCollection)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public InternalServiceCollectionMap(IServiceCollection serviceCollection)

Parameters

serviceCollection IServiceCollection

Properties

ServiceCollection

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual IServiceCollection ServiceCollection { get; }

Property Value

IServiceCollection

Methods

AddDependency(Type, ServiceLifetime)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual IInternalServiceCollectionMap AddDependency(Type serviceType, ServiceLifetime lifetime)

Parameters

serviceType Type
lifetime ServiceLifetime

Returns

IInternalServiceCollectionMap

AddDependencyScoped<TDependencies>()

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual IInternalServiceCollectionMap AddDependencyScoped<TDependencies>()

Returns

IInternalServiceCollectionMap

Type Parameters

TDependencies

AddDependencySingleton<TDependencies>()

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual IInternalServiceCollectionMap AddDependencySingleton<TDependencies>()

Returns

IInternalServiceCollectionMap

Type Parameters

TDependencies

AddNewDescriptor(IList<int>, ServiceDescriptor)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void AddNewDescriptor(IList<int> indexes, ServiceDescriptor newDescriptor)

Parameters

indexes IList<int>
newDescriptor ServiceDescriptor

DoPatchInjection<TService>()

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual InternalServiceCollectionMap DoPatchInjection<TService>() where TService : class

Returns

InternalServiceCollectionMap

The map, such that further calls can be chained.

Type Parameters

TService

The service contract.

Remarks

Re-writes the registration for the given service such that if the implementation type implements IPatchServiceInjectionSite, then InjectServices(IServiceProvider) will be called while resolving the service allowing additional services to be injected without breaking the existing constructor.

This mechanism should only be used to allow new services to be injected in a patch or point release without making binary breaking changes.

GetOrCreateDescriptorIndexes(Type)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual IList<int> GetOrCreateDescriptorIndexes(Type serviceType)

Parameters

serviceType Type

Returns

IList<int>