IRegistrationBuilderTLimit, TActivatorData, TRegistrationStyle Interface |
Namespace: Autofac.Builder
public interface IRegistrationBuilder<out TLimit, out TActivatorData, out TRegistrationStyle>
The IRegistrationBuilderTLimit, TActivatorData, TRegistrationStyle type exposes the following members.
Name | Description | |
---|---|---|
As(Type) |
Configure the services that the component will provide.
| |
As(Service) |
Configure the services that the component will provide.
| |
AsTService |
Configure the services that the component will provide. The generic parameter(s) to As()
will be exposed as TypedService instances.
| |
AsTService1, TService2 |
Configure the services that the component will provide. The generic parameter(s) to As()
will be exposed as TypedService instances.
| |
AsTService1, TService2, TService3 |
Configure the services that the component will provide. The generic parameter(s) to As()
will be exposed as TypedService instances.
| |
ConfigurePipeline |
Provides access to the registration's pipeline builder, allowing custom middleware to be added.
| |
ExternallyOwned |
Configure the component so that instances are never disposed by the container.
| |
InstancePerDependency |
Configure the component so that every dependent component or call to Resolve()
gets a new, unique instance (default).
| |
InstancePerLifetimeScope |
Configure the component so that every dependent component or call to Resolve()
within a single ILifetimeScope gets the same, shared instance. Dependent components in
different lifetime scopes will get different instances.
| |
InstancePerMatchingLifetimeScope |
Configure the component so that every dependent component or call to Resolve() within
a ILifetimeScope tagged with any of the provided tags value gets the same, shared instance.
Dependent components in lifetime scopes that are children of the tagged scope will
share the parent's instance. If no appropriately tagged scope can be found in the
hierarchy an DependencyResolutionException is thrown.
| |
InstancePerOwned(Type) |
Configure the component so that every dependent component or call to Resolve()
within a ILifetimeScope created by an owned instance gets the same, shared instance.
Dependent components in lifetime scopes that are children of the owned instance scope will
share the parent's instance. If no appropriate owned instance scope can be found in the
hierarchy an DependencyResolutionException is thrown.
| |
InstancePerOwned(Object, Type) |
Configure the component so that every dependent component or call to Resolve()
within a ILifetimeScope created by an owned instance gets the same, shared instance.
Dependent components in lifetime scopes that are children of the owned instance scope will
share the parent's instance. If no appropriate owned instance scope can be found in the
hierarchy an DependencyResolutionException is thrown.
| |
InstancePerOwnedTService |
Configure the component so that every dependent component or call to Resolve()
within a ILifetimeScope created by an owned instance gets the same, shared instance.
Dependent components in lifetime scopes that are children of the owned instance scope will
share the parent's instance. If no appropriate owned instance scope can be found in the
hierarchy an DependencyResolutionException is thrown.
| |
InstancePerOwnedTService(Object) |
Configure the component so that every dependent component or call to Resolve()
within a ILifetimeScope created by an owned instance gets the same, shared instance.
Dependent components in lifetime scopes that are children of the owned instance scope will
share the parent's instance. If no appropriate owned instance scope can be found in the
hierarchy an DependencyResolutionException is thrown.
| |
InstancePerOwnedTService(Object) |
Configure the component so that every dependent component or call to Resolve()
within a ILifetimeScope created by an owned instance gets the same, shared instance.
Dependent components in lifetime scopes that are children of the owned instance scope will
share the parent's instance. If no appropriate owned instance scope can be found in the
hierarchy an DependencyResolutionException is thrown.
| |
Keyed(Object, Type) |
Provide a key that can be used to retrieve the component.
| |
KeyedTService(Object) |
Provide a key that can be used to retrieve the component.
| |
Named(String, Type) |
Provide a textual name that can be used to retrieve the component.
| |
NamedTService(String) |
Provide a textual name that can be used to retrieve the component.
| |
OnActivated(ActionIActivatedEventArgsTLimit) |
Add a handler for the Activated event.
| |
OnActivated(FuncIActivatedEventArgsTLimit, ValueTask) |
Add a handler for the Activated event.
| |
OnActivating(ActionIActivatingEventArgsTLimit) |
Add a handler for the Activating event.
| |
OnActivating(FuncIActivatingEventArgsTLimit, ValueTask) |
Add an async handler for the Activating event.
| |
OnPreparing(ActionPreparingEventArgs) |
Add a handler for the Preparing event. This event allows manipulating of the parameters
that will be provided to the component.
| |
OnPreparing(FuncPreparingEventArgs, ValueTask) |
Add an async handler for the Preparing event. This event allows manipulating of the parameters
that will be provided to the component.
| |
OwnedByLifetimeScope |
Configure the component so that instances that support IDisposable are
disposed by the container (default).
| |
PropertiesAutowired |
Configure the component so that any properties whose types are registered in the
container and follow specific criteria will be wired to instances of the appropriate service.
| |
SingleInstance |
Configure the component so that every dependent component or call to Resolve()
gets the same, shared instance.
| |
WithMetadata(IEnumerableKeyValuePairString, Object) |
Associates data with the component.
| |
WithMetadata(String, Object) |
Associates data with the component.
| |
WithMetadataTMetadata(ActionMetadataConfigurationTMetadata) |
Associates data with the component.
|