HAKOM.DependencyInjection.Core.Net.Api Namespace
Contains the public API surface of the HAKOM dependency injection module.
Remarks
Section titled “Remarks”The key types in this namespace are:
- IContainer — Register services with methods such as
Use,UseOnce, andUseSingleton. After all registrations are complete, call Activate() to seal the container and begin resolving. - IActivatedContainer — Read-only view of a sealed container that can only resolve previously registered services.
- IApplicationContext — Convenience entry point that creates a container, accepts registrations, activates, and resolves a root service in a single fluent call.
| Interfaces | |
|---|---|
| IActivatedContainer | A dependency injection container used to resolve dependencies. |
| IApplicationContext | Used to configure a dependency injection container and activate a registered service to act as the root of an application. |
| IContainer | Dependency injection container used to register and resolve services and their implementing types. |
| IRequiresConfiguration | Marker interface for types that require a post-instantiation configuration step before they can be used. |
| ISharedInstance<TCommon,TShared> | Represents a container for an instance of type TShared that all activations of TCommon want to share among themselves. The implementation of TCommon should add a dependency to ISharedInstance<TCommon,TShared> to access the shared instance through Instance. |
Was this page helpful?Thanks for your feedback!