ComponentRegistration Constructor (Guid, IInstanceActivator, IComponentLifetime, InstanceSharing, InstanceOwnership, IEnumerableService, IDictionaryString, Object, IComponentRegistration, RegistrationOptions) |
Namespace:
Autofac.Core.Registration
Assembly:
Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax public ComponentRegistration(
Guid id,
IInstanceActivator activator,
IComponentLifetime lifetime,
InstanceSharing sharing,
InstanceOwnership ownership,
IEnumerable<Service> services,
IDictionary<string, Object> metadata,
IComponentRegistration target,
RegistrationOptions options = RegistrationOptions.None
)
Public Sub New (
id As Guid,
activator As IInstanceActivator,
lifetime As IComponentLifetime,
sharing As InstanceSharing,
ownership As InstanceOwnership,
services As IEnumerable(Of Service),
metadata As IDictionary(Of String, Object),
target As IComponentRegistration,
Optional options As RegistrationOptions = RegistrationOptions.None
)
Parameters
- id
- Type: SystemGuid
The registration id. - activator
- Type: Autofac.CoreIInstanceActivator
The component activator. - lifetime
- Type: Autofac.CoreIComponentLifetime
The lifetime for activated instances. - sharing
- Type: Autofac.CoreInstanceSharing
The sharing setting for the registration. - ownership
- Type: Autofac.CoreInstanceOwnership
The ownership setting for the registration. - services
- Type: System.Collections.GenericIEnumerableService
The set of services provided by the registration. - metadata
- Type: System.Collections.GenericIDictionaryString, Object
Any metadata associated with the registration. - target
- Type: Autofac.CoreIComponentRegistration
The target/inner registration. - options (Optional)
- Type: Autofac.Core.RegistrationRegistrationOptions
Contains options for the registration.
See Also