Microsoft.Extensions.DependencyInjection.Abstractions
Helper code for the various activator services.
Instantiate a type with constructor arguments provided directly and/or from an .
The service provider used to resolve dependencies
The type to activate
Constructor arguments not provided by the .
An activated object of type instanceType
Create a delegate that will instantiate a type with constructor arguments provided directly
and/or from an .
The type to activate
The types of objects, in order, that will be passed to the returned function as its second parameter
A factory that will instantiate instanceType using an
and an argument array containing objects matching the types defined in argumentTypes
Instantiate a type with constructor arguments provided directly and/or from an .
The type to activate
The service provider used to resolve dependencies
Constructor arguments not provided by the .
An activated object of type T
Retrieve an instance of the given type from the service provider. If one is not found then instantiate it directly.
The type of the service
The service provider used to resolve dependencies
The resolved service or created instance
Retrieve an instance of the given type from the service provider. If one is not found then instantiate it directly.
The service provider
The type of the service
The resolved service or created instance
Marks the constructor to be used when activating type using .
An implementation that implements .
Initializes a new instance of the struct.
Wraps an instance of .
The instance to wrap.
Extension methods for adding and removing services to an .
Adds the specified to the .
The .
The to add.
A reference to the current instance of .
Adds a sequence of to the .
The .
The s to add.
A reference to the current instance of .
Adds the specified to the if the
service type hasn't already been registered.
The .
The to add.
Adds the specified to the if the
service type hasn't already been registered.
The .
The s to add.
Adds the specified as a service
to the if the service type hasn't already been registered.
The .
The type of the service to register.
Adds the specified as a service
with the implementation
to the if the service type hasn't already been registered.
The .
The type of the service to register.
The implementation type of the service.
Adds the specified as a service
using the factory specified in
to the if the service type hasn't already been registered.
The .
The type of the service to register.
The factory that creates the service.
Adds the specified as a service
to the if the service type hasn't already been registered.
The type of the service to add.
The .
Adds the specified as a service
implementation type specified in
to the if the service type hasn't already been registered.
The type of the service to add.
The type of the implementation to use.
The .
Adds the specified as a service
using the factory specified in
to the if the service type hasn't already been registered.
The type of the service to add.
The .
The factory that creates the service.
Adds the specified as a service
to the if the service type hasn't already been registered.
The .
The type of the service to register.
Adds the specified as a service
with the implementation
to the if the service type hasn't already been registered.
The .
The type of the service to register.
The implementation type of the service.
Adds the specified as a service
using the factory specified in
to the if the service type hasn't already been registered.
The .
The type of the service to register.
The factory that creates the service.
Adds the specified as a service
to the if the service type hasn't already been registered.
The type of the service to add.
The .
Adds the specified as a service
implementation type specified in
to the if the service type hasn't already been registered.
The type of the service to add.
The type of the implementation to use.
The .
Adds the specified as a service
using the factory specified in
to the if the service type hasn't already been registered.
The type of the service to add.
The .
The factory that creates the service.
Adds the specified as a service
to the if the service type hasn't already been registered.
The .
The type of the service to register.
Adds the specified as a service
with the implementation
to the if the service type hasn't already been registered.
The .
The type of the service to register.
The implementation type of the service.
Adds the specified as a service
using the factory specified in
to the if the service type hasn't already been registered.
The .
The type of the service to register.
The factory that creates the service.
Adds the specified as a service
to the if the service type hasn't already been registered.
The type of the service to add.
The .
Adds the specified as a service
implementation type specified in
to the if the service type hasn't already been registered.
The type of the service to add.
The type of the implementation to use.
The .
Adds the specified as a service
with an instance specified in
to the if the service type hasn't already been registered.
The type of the service to add.
The .
The instance of the service to add.
Adds the specified as a service
using the factory specified in
to the if the service type hasn't already been registered.
The type of the service to add.
The .
The factory that creates the service.
Adds a if an existing descriptor with the same
and an implementation that does not already exist
in .
The .
The .
Use when registering a service implementation of a
service type that
supports multiple registrations of the same service type. Using
is not idempotent and can add
duplicate
instances if called twice. Using
will prevent registration
of multiple implementation types.
Adds the specified s if an existing descriptor with the same
and an implementation that does not already exist
in .
The .
The s.
Use when registering a service
implementation of a service type that
supports multiple registrations of the same service type. Using
is not idempotent and can add
duplicate
instances if called twice. Using
will prevent registration
of multiple implementation types.
Removes the first service in with the same service type
as and adds to the collection.
The .
The to replace with.
The for chaining.
Removes all services of type in .
The .
The for chaining.
Removes all services of type in .
The .
The service type to remove.
The for chaining.
Specifies the contract for a collection of service descriptors.
Provides an extension point for creating a container specific builder and an .
Creates a container builder from an .
The collection of services
A container builder that can be used to create an .
Creates an from the container builder.
The container builder
An
Optional service used to determine if the specified type is available from the .
Determines if the specified service type is available from the .
An object that specifies the type of service object to test.
true if the specified service is a available, false if it is not.
The method ends the scope lifetime. Once Dispose
is called, any scoped services that have been resolved from
will be
disposed.
The used to resolve dependencies from the scope.
A factory for creating instances of , which is used to create
services within a scope.
Create an which
contains an used to resolve dependencies from a
newly created scope.
An controlling the
lifetime of the scope. Once this is disposed, any scoped services that have been resolved
from the
will also be disposed.
Optional contract used by
to resolve services if supported by .
Gets service of type from the implementing
this interface.
An object that specifies the type of service object to get.
A service object of type .
Throws an exception if the cannot create the object.
The result of .
The to get service arguments from.
Additional constructor arguments.
The instantiated type.
Default implementation of .
Extension methods for adding services to an .
Adds a transient service of the type specified in with an
implementation of the type specified in to the
specified .
The to add the service to.
The type of the service to register.
The implementation type of the service.
A reference to this instance after the operation has completed.
Adds a transient service of the type specified in with a
factory specified in to the
specified .
The to add the service to.
The type of the service to register.
The factory that creates the service.
A reference to this instance after the operation has completed.
Adds a transient service of the type specified in with an
implementation type specified in to the
specified .
The type of the service to add.
The type of the implementation to use.
The to add the service to.
A reference to this instance after the operation has completed.
Adds a transient service of the type specified in to the
specified .
The to add the service to.
The type of the service to register and the implementation to use.
A reference to this instance after the operation has completed.
Adds a transient service of the type specified in to the
specified .
The type of the service to add.
The to add the service to.
A reference to this instance after the operation has completed.
Adds a transient service of the type specified in with a
factory specified in to the
specified .
The type of the service to add.
The to add the service to.
The factory that creates the service.
A reference to this instance after the operation has completed.
Adds a transient service of the type specified in with an
implementation type specified in using the
factory specified in to the
specified .
The type of the service to add.
The type of the implementation to use.
The to add the service to.
The factory that creates the service.
A reference to this instance after the operation has completed.
Adds a scoped service of the type specified in with an
implementation of the type specified in to the
specified .
The to add the service to.
The type of the service to register.
The implementation type of the service.
A reference to this instance after the operation has completed.
Adds a scoped service of the type specified in with a
factory specified in to the
specified .
The to add the service to.
The type of the service to register.
The factory that creates the service.
A reference to this instance after the operation has completed.
Adds a scoped service of the type specified in with an
implementation type specified in to the
specified .
The type of the service to add.
The type of the implementation to use.
The to add the service to.
A reference to this instance after the operation has completed.
Adds a scoped service of the type specified in to the
specified .
The to add the service to.
The type of the service to register and the implementation to use.
A reference to this instance after the operation has completed.
Adds a scoped service of the type specified in to the
specified .
The type of the service to add.
The to add the service to.
A reference to this instance after the operation has completed.
Adds a scoped service of the type specified in with a
factory specified in to the
specified .
The type of the service to add.
The to add the service to.
The factory that creates the service.
A reference to this instance after the operation has completed.
Adds a scoped service of the type specified in with an
implementation type specified in using the
factory specified in to the
specified .
The type of the service to add.
The type of the implementation to use.
The to add the service to.
The factory that creates the service.
A reference to this instance after the operation has completed.
Adds a singleton service of the type specified in with an
implementation of the type specified in to the
specified .
The to add the service to.
The type of the service to register.
The implementation type of the service.
A reference to this instance after the operation has completed.
Adds a singleton service of the type specified in with a
factory specified in to the
specified .
The to add the service to.
The type of the service to register.
The factory that creates the service.
A reference to this instance after the operation has completed.
Adds a singleton service of the type specified in with an
implementation type specified in to the
specified .
The type of the service to add.
The type of the implementation to use.
The to add the service to.
A reference to this instance after the operation has completed.
Adds a singleton service of the type specified in to the
specified .
The to add the service to.
The type of the service to register and the implementation to use.
A reference to this instance after the operation has completed.
Adds a singleton service of the type specified in to the
specified .
The type of the service to add.
The to add the service to.
A reference to this instance after the operation has completed.
Adds a singleton service of the type specified in with a
factory specified in to the
specified .
The type of the service to add.
The to add the service to.
The factory that creates the service.
A reference to this instance after the operation has completed.
Adds a singleton service of the type specified in with an
implementation type specified in using the
factory specified in to the
specified .
The type of the service to add.
The type of the implementation to use.
The to add the service to.
The factory that creates the service.
A reference to this instance after the operation has completed.
Adds a singleton service of the type specified in with an
instance specified in to the
specified .
The to add the service to.
The type of the service to register.
The instance of the service.
A reference to this instance after the operation has completed.
Adds a singleton service of the type specified in with an
instance specified in to the
specified .
The to add the service to.
The instance of the service.
A reference to this instance after the operation has completed.
Describes a service with its service type, implementation, and lifetime.
Initializes a new instance of with the specified .
The of the service.
The implementing the service.
The of the service.
Initializes a new instance of with the specified
as a .
The of the service.
The instance implementing the service.
Initializes a new instance of with the specified .
The of the service.
A factory used for creating service instances.
The of the service.
Creates an instance of with the specified
, ,
and the lifetime.
The type of the service.
The type of the implementation.
A new instance of .
Creates an instance of with the specified
and
and the lifetime.
The type of the service.
The type of the implementation.
A new instance of .
Creates an instance of with the specified
, ,
,
and the lifetime.
The type of the service.
The type of the implementation.
A factory to create new instances of the service implementation.
A new instance of .
Creates an instance of with the specified
, ,
and the lifetime.
The type of the service.
A factory to create new instances of the service implementation.
A new instance of .
Creates an instance of with the specified
, ,
and the lifetime.
The type of the service.
A factory to create new instances of the service implementation.
A new instance of .
Creates an instance of with the specified
, ,
and the lifetime.
The type of the service.
The type of the implementation.
A new instance of .
Creates an instance of with the specified
and
and the lifetime.
The type of the service.
The type of the implementation.
A new instance of .
Creates an instance of with the specified
, ,
,
and the lifetime.
The type of the service.
The type of the implementation.
A factory to create new instances of the service implementation.
A new instance of .
Creates an instance of with the specified
, ,
and the lifetime.
The type of the service.
A factory to create new instances of the service implementation.
A new instance of .
Creates an instance of with the specified
, ,
and the lifetime.
The type of the service.
A factory to create new instances of the service implementation.
A new instance of .
Creates an instance of with the specified
, ,
and the lifetime.
The type of the service.
The type of the implementation.
A new instance of .
Creates an instance of with the specified
and
and the lifetime.
The type of the service.
The type of the implementation.
A new instance of .
Creates an instance of with the specified
, ,
,
and the lifetime.
The type of the service.
The type of the implementation.
A factory to create new instances of the service implementation.
A new instance of .
Creates an instance of with the specified
, ,
and the lifetime.
The type of the service.
A factory to create new instances of the service implementation.
A new instance of .
Creates an instance of with the specified
, ,
and the lifetime.
The type of the service.
A factory to create new instances of the service implementation.
A new instance of .
Creates an instance of with the specified
, ,
and the lifetime.
The type of the service.
The instance of the implementation.
A new instance of .
Creates an instance of with the specified
, ,
and the lifetime.
The type of the service.
The instance of the implementation.
A new instance of .
Creates an instance of with the specified
, ,
and .
The type of the service.
The type of the implementation.
The lifetime of the service.
A new instance of .
Creates an instance of with the specified
, ,
and .
The type of the service.
A factory to create new instances of the service implementation.
The lifetime of the service.
A new instance of .
Specifies the lifetime of a service in an .
Specifies that a single instance of the service will be created.
Specifies that a new instance of the service will be created for each scope.
In ASP.NET Core applications a scope is created around each server request.
Specifies that a new instance of the service will be created every time it is requested.
Extension methods for getting services from an .
Get service of type from the .
The type of service object to get.
The to retrieve the service object from.
A service object of type or null if there is no such service.
Get service of type from the .
The to retrieve the service object from.
An object that specifies the type of service object to get.
A service object of type .
There is no service of type .
Get service of type from the .
The type of service object to get.
The to retrieve the service object from.
A service object of type .
There is no service of type .
Get an enumeration of services of type from the .
The type of service object to get.
The to retrieve the services from.
An enumeration of services of type .
Get an enumeration of services of type from the .
The to retrieve the services from.
An object that specifies the type of service object to get.
An enumeration of services of type .
Creates a new that can be used to resolve scoped services.
The to create the scope from.
A that can be used to resolve scoped services.
Creates a new that can be used to resolve scoped services.
The to create the scope from.
An that can be used to resolve scoped services.
Creates a new that can be used to resolve scoped services.
The to create the scope from.
An that can be used to resolve scoped services.
Multiple constructors accepting all given argument types have been found in type '{0}'. There should only be one applicable constructor.
Unable to locate implementation '{0}' for service '{1}'.
Unable to resolve service for type '{0}' while attempting to activate '{1}'.
A suitable constructor for type '{0}' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor.
No service for type '{0}' has been registered.
Implementation type cannot be '{0}' because it is indistinguishable from other services registered for '{1}'.