Methods
- As(Service[]) Configure the services that the component will provide.
- As(Type[]) Configure the services that the component will provide.
- As``1() Configure the services that the component will provide. The generic parameter(s) to As() will be exposed as TypedService instances.
- As``2() Configure the services that the component will provide. The generic parameter(s) to As() will be exposed as TypedService instances.
- As``3() Configure the services that the component will provide. The generic parameter(s) to As() will be exposed as TypedService instances.
-
Externally
Owned() Configure the component so that instances are never disposed by the container. -
Instance
Per Configure the component so that every dependent component or call to Resolve() gets a new, unique instance (default).Dependency() -
Instance
Per 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.Lifetime Scope() -
Instance
Per 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.Matching Lifetime Scope(Object[]) -
Instance
Per 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.Owned(Object, Type) -
Instance
Per 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.Owned(Type) -
Instance
Per 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.Owned``1() -
Instance
Per 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.Owned``1(Object) -
Keyed(Object,
Type) Provide a key that can be used to retrieve the component. - Keyed``1(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. - Named``1(String) Provide a textual name that can be used to retrieve the component.
-
On
Activated(Action<IActivated Add a handler for the Activated event.Event Args<`0>>) -
On
Activating(Action<IActivating Add a handler for the Activating event.Event Args<`0>>) -
On
Preparing(Action<Preparing Add a handler for the Preparing event. This event allows manipulating of the parameters that will be provided to the component.Event Args>) -
Owned
By Configure the component so that instances that support IDisposable are disposed by the container (default).Lifetime Scope() -
Properties
Autowired(IProperty 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.Selector, Boolean) -
Single
Instance() Configure the component so that every dependent component or call to Resolve() gets the same, shared instance. -
With
Metadata(IEnumerable<Key Associates data with the component.Value Pair<String, Object>>) -
With
Metadata(String, Associates data with the component.Object) -
With
Metadata``1(Action<Metadata Associates data with the component.Configuration<``0>>)
Properties
-
Activator
Data Gets the activator data. -
Registration
Data Gets the registration data. -
Registration
Style Gets the registration style.