Home > typeioc > IContainer
Represents container interface
Signature:
export interface IContainer 
| Property | Type | Description | 
|---|---|---|
| cache | ICache | 
      Represents a dictionary of cached components/resolved registrations ICache | 
| Method | Description | 
|---|---|
| createChild() | Creates nested life cycle scoped container | 
| dispose() | Disposes all resolved, internally owned instances registered using Disposer interface | 
| disposeAsync() | Asynchronously disposes all resolved, internally owned instances registered using Disposer interface | 
| resolve(service, args) | Resolves a service with optional parameters Throws ResolutionError if not registration found | 
| resolveAsync(service, args) | Asynchronously resolves a service with optional parameters | 
| resolveNamed(service, name, args) | Resolves a service with specific name and optional parameters Throws ResolutionError if not registration found | 
| resolveNamedAsync(service, name, args) | Asynchronously resolves a service with specific name and optional parameters | 
| resolveWith(service) | Resolves a service using fluent cascading interface | 
| resolveWithDependencies(service, dependencies) | Resolves a service with dynamic dependencies | 
| resolveWithDependenciesAsync(service, dependencies) | Asynchronously resolves a service with dynamic dependencies | 
| tryResolve(service, args) | Attempts to resolve a service with optional parameters. | 
| tryResolveAsync(service, args) | Asynchronously attempts to resolve a service with optional parameters. | 
| tryResolveNamed(service, name, args) | Attempts to resolve a service with specific name and optional parameters | 
| tryResolveNamedAsync(service, name, args) | Asynchronously attempts to resolve a service with specific name and optional parameters | 
Containers are used to resolve prior registered services