ContainerCollectionRegistrator Methods

Simple Injector

The ContainerCollectionRegistrator type exposes the following members.

Methods

  NameDescription
Public methodAppend(Type, Registration)
Appends a new registration to a collection of registrations for the given serviceType. Calls to Append can both preceed and follow a call to one of the Container.Collections.Register overloads.
Public methodAppend(Type, Type)
Appends a new registration of implementationType to a collection of registrations for the given serviceType. Calls to Append can both preceed and follow a call to one of the Container.Collections.Register overloads.
Public methodAppend(Type, Type, Lifestyle)
Appends a new registration of implementationType to a collection of registrations for the given serviceType using the supplied lifestyle. Calls to Append can both preceed and follow a call to one of the Container.Collections.Register overloads.
Public methodAppendTService(FuncTService, Lifestyle)
Appends the specified delegate instanceCreator to a collection of registrations for the given TService using the supplied lifestyle. Calls to Append can both preceed and follow a call to one of the Container.Collections.Register overloads.
Public methodAppendTService, TImplementation
Appends a new registration of TImplementation to a collection of registrations for the given TService. Calls to Append can both preceed and follow a call to one of the Container.Collections.Register overloads.
Public methodAppendTService, TImplementation(Lifestyle)
Appends a new registration of TImplementation to a collection of registrations for the given TService using the supplied lifestyle. Calls to Append can both preceed and follow a call to one of the Container.Collections.Register overloads.
Public methodAppendInstance(Type, Object)
Appends a single instance to a collection of registrations for the given serviceType. Calls to AppendInstance can both preceed and follow a call to one of the Container.Collections.Register overloads. This instance must be thread-safe when working in a multi-threaded environment. NOTE: Do note that instances supplied by this method NEVER get disposed by the container; the instance is assumed to outlive this container instance. If disposing is required, use RegisterSingleton<TService>(Func<TService>).
Public methodAppendInstanceTService(TService)
Appends a single instance to a collection of registrations for the given TService . Calls to AppendInstance can both preceed and follow a call to one of the Container.Collections.Register overloads. This instance must be thread-safe when working in a multi-threaded environment. NOTE: Do note that instances supplied by this method NEVER get disposed by the container; the instance is assumed to outlive this container instance. If disposing is required, use RegisterSingleton<TService>(Func<TService>).
Public methodCreateTService(IEnumerableAssembly)
Creates a collection of all concrete, non-generic types (both public and internal) that are defined in the given set of assemblies and that implement the given TService with a default lifestyle and register them as a collection of TService. Unless overridden using a custom LifestyleSelectionBehavior, the default lifestyle is Transient.
Public methodCreateTService(IEnumerableType)
Creates a collection of serviceTypes, whose instances will be resolved lazily each time the returned collection of TService is enumerated. The underlying collection is a stream that will return individual instances based on their specific registered lifestyle, for each call to Current. The order in which the types appear in the collection is the exact same order that the items were supplied to this method, i.e the resolved collection's order is deterministic.
Public methodCreateTService(Assembly)
Creates a collection of all concrete, non-generic types (both public and internal) that are defined in the given set of assemblies and that implement the given TService with a default lifestyle and register them as a collection of TService. Unless overridden using a custom LifestyleSelectionBehavior, the default lifestyle is Transient.
Public methodCreateTService(Type)
Creates a collection of serviceTypes, whose instances will be resolved lazily each time the returned collection of TService is enumerated. The underlying collection is a stream that will return individual instances based on their specific registered lifestyle, for each call to Current. The order in which the types appear in the collection is the exact same order that the items were supplied to this method, i.e the resolved collection's order is deterministic.
Public methodCreateTService(Registration)
Creates a collection of registrations, whose instances will be resolved lazily each time the returned collection of TService is enumerated. The underlying collection is a stream that will return individual instances based on their specific registered lifestyle, for each call to Current. The order in which the types appear in the collection is the exact same order that the items were supplied to this method, i.e the resolved collection's order is deterministic.
Public methodCreateTService(IEnumerableRegistration)
Creates a collection of registrations, whose instances will be resolved lazily each time the returned collection of TService is enumerated. The underlying collection is a stream that will return individual instances based on their specific registered lifestyle, for each call to Current. The order in which the types appear in the collection is the exact same order that the items were supplied to this method, i.e the resolved collection's order is deterministic.
Public methodCreateRegistrationTService(IEnumerableAssembly)
Creates a new Registration instance defining the creation of a collection of all concrete, non-generic types (both public and internal) that are defined in the given set of assemblies and that implement the given TService with a default lifestyle and register them as a collection of TService. Unless overridden using a custom LifestyleSelectionBehavior, the default lifestyle is Transient. The collection's instances will be resolved lazily each time the returned collection of TService is enumerated. The underlying collection is a stream that will return individual instances based on their specific registered lifestyle, for each call to Current. The order in which the types appear in the collection is the exact same order that the items were supplied to this method, i.e the resolved collection's order is deterministic.
Public methodCreateRegistrationTService(IEnumerableType)
Creates a new Registration instance defining the creation of a collection of serviceTypes, whose instances will be resolved lazily each time the returned collection of TService is enumerated. The underlying collection is a stream that will return individual instances based on their specific registered lifestyle, for each call to Current. The order in which the types appear in the collection is the exact same order that the items were supplied to this method, i.e the resolved collection's order is deterministic.
Public methodCreateRegistrationTService(Assembly)
Creates a new Registration instance defining the creation of a collection of all concrete, non-generic types (both public and internal) that are defined in the given set of assemblies and that implement the given TService with a default lifestyle and register them as a collection of TService. Unless overridden using a custom LifestyleSelectionBehavior, the default lifestyle is Transient. The collection's instances will be resolved lazily each time the returned collection of TService is enumerated. The underlying collection is a stream that will return individual instances based on their specific registered lifestyle, for each call to Current. The order in which the types appear in the collection is the exact same order that the items were supplied to this method, i.e the resolved collection's order is deterministic.
Public methodCreateRegistrationTService(Type)
Creates a new Registration instance defining the creation of a collection of serviceTypes, whose instances will be resolved lazily each time the returned collection of TService is enumerated. The underlying collection is a stream that will return individual instances based on their specific registered lifestyle, for each call to Current. The order in which the types appear in the collection is the exact same order that the items were supplied to this method, i.e the resolved collection's order is deterministic.
Public methodCreateRegistrationTService(Registration)
Creates a new Registration instance defining the creation of a collection of registrations, whose instances will be resolved lazily each time the returned collection of TService is enumerated. The underlying collection is a stream that will return individual instances based on their specific registered lifestyle, for each call to Current. The order in which the types appear in the collection is the exact same order that the items were supplied to this method, i.e the resolved collection's order is deterministic.
Public methodCreateRegistrationTService(IEnumerableRegistration)
Creates a new Registration instance defining the creation of a collection of registrations, whose instances will be resolved lazily each time the returned collection of TService is enumerated. The underlying collection is a stream that will return individual instances based on their specific registered lifestyle, for each call to Current. The order in which the types appear in the collection is the exact same order that the items were supplied to this method, i.e the resolved collection's order is deterministic.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from ApiObject.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from ApiObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from ApiObject.)
Public methodRegister(Type, IEnumerableRegistration)
Registers a collection of registrations, whose instances will be resolved lazily each time the resolved collection of serviceType is enumerated. The underlying collection is a stream that will return individual instances based on their specific registered lifestyle, for each call to Current. The order in which the types appear in the collection is the exact same order that the items were supplied to this method, i.e the resolved collection's order is deterministic.
Public methodRegister(Type, IEnumerableAssembly)
Registers all concrete, non-generic types (both public and internal) that are defined in the given set of assemblies and that implement the given serviceType with a default lifestyle and register them as a collection of serviceType. Unless overridden using a custom LifestyleSelectionBehavior, the default lifestyle is Transient. Composites, decorators and generic type definitions will be excluded from registration.
Public methodRegister(Type, IEnumerableType)
Registers a collection of serviceTypes, whose instances will be resolved lazily each time the resolved collection of serviceType is enumerated. The underlying collection is a stream that will return individual instances based on their specific registered lifestyle, for each call to Current. The order in which the types appear in the collection is the exact same order that the items were supplied to this method, i.e the resolved collection's order is deterministic.
Public methodRegister(Type, IEnumerable)
Registers a dynamic (container uncontrolled) collection of elements of type serviceType. A call to GetAllInstancesTService will return the containerUncontrolledCollection itself, and updates to the collection will be reflected in the result. If updates are allowed, make sure the collection can be iterated safely if you're running a multi-threaded application.
Public methodRegister(Type, Assembly)
Registers all concrete, non-generic types (both public and internal) that are defined in the given set of assemblies and that implement the given serviceType with a default lifestyle and register them as a collection of serviceType. Unless overridden using a custom LifestyleSelectionBehavior, the default lifestyle is Transient. Composites, decorators and generic type definitions will be excluded from registration.
Public methodRegister(Type, IEnumerableAssembly, Lifestyle)
Registers all concrete, non-generic types (both public and internal) that are defined in the given set of assemblies and that implement the given serviceType with the supplied lifestyle and register them as a collection of serviceType. Unless overridden using a custom LifestyleSelectionBehavior, the default lifestyle is Transient. Composites, decorators and generic type definitions will be excluded from registration.
Public methodRegister(Type, IEnumerableType, Lifestyle)
Registers a collection of serviceTypes, whose instances will be resolved lazily each time the resolved collection of serviceType is enumerated. The underlying collection is a stream that will return individual instances based on the supplied lifestyle, for each call to Current. The order in which the types appear in the collection is the exact same order that the items were supplied to this method, i.e the resolved collection's order is deterministic.
Public methodRegisterTService(IEnumerableAssembly)
Registers all concrete, non-generic types (both public and internal) that are defined in the given set of assemblies and that implement the given TService with a default lifestyle and register them as a collection of TService. Unless overridden using a custom LifestyleSelectionBehavior, the default lifestyle is Transient.
Public methodRegisterTService(IEnumerableType)
Registers a collection of serviceTypes, whose instances will be resolved lazily each time the resolved collection of TService is enumerated. The underlying collection is a stream that will return individual instances based on their specific registered lifestyle, for each call to Current. The order in which the types appear in the collection is the exact same order that the items were supplied to this method, i.e the resolved collection's order is deterministic.
Public methodRegisterTService(IEnumerableTService)
Registers a dynamic (container uncontrolled) collection of elements of type TService. A call to GetAllInstancesTService will return the containerUncontrolledCollection itself, and updates to the collection will be reflected in the result. If updates are allowed, make sure the collection can be iterated safely if you're running a multi-threaded application.
Public methodRegisterTService(Assembly)
Registers all concrete, non-generic types (both public and internal) that are defined in the given set of assemblies and that implement the given TService with a default lifestyle and register them as a collection of TService. Unless overridden using a custom LifestyleSelectionBehavior, the default lifestyle is Transient.
Public methodRegisterTService(Type)
Registers a collection of serviceTypes, whose instances will be resolved lazily each time the resolved collection of TService is enumerated. The underlying collection is a stream that will return individual instances based on their specific registered lifestyle, for each call to Current. The order in which the types appear in the collection is the exact same order that the items were supplied to this method, i.e the resolved collection's order is deterministic.
Public methodRegisterTService(TService)
Registers a collection of singleton elements of type TService.
Public methodRegisterTService(IEnumerableRegistration)
Registers a collection of registrations, whose instances will be resolved lazily each time the resolved collection of TService is enumerated. The underlying collection is a stream that will return individual instances based on their specific registered lifestyle, for each call to Current. The order in which the types appear in the collection is the exact same order that the items were supplied to this method, i.e the resolved collection's order is deterministic.
Public methodRegisterTService(IEnumerableAssembly, Lifestyle)
Registers all concrete, non-generic types (both public and internal) that are defined in the given set of assemblies and that implement the given TService with the supplied lifestyle and register them as a collection of TService. Unless overridden using a custom LifestyleSelectionBehavior, the default lifestyle is Transient.
Public methodRegisterTService(IEnumerableType, Lifestyle)
Registers a collection of serviceTypes, whose instances will be resolved lazily each time the resolved collection of TService is enumerated. The underlying collection is a stream that will return individual instances based on the supplied lifestyle, for each call to Current. The order in which the types appear in the collection is the exact same order that the items were supplied to this method, i.e the resolved collection's order is deterministic.
Public methodToString
Returns a string that represents the current object.
(Inherited from ApiObject.)
Top
See Also

Reference