Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class IoCContainer
import { IoCContainer } from "https://deno.land/x/fathym_eac_runtime@v0.0.140/src/src.deps.ts";

Constructors

new
IoCContainer()

Properties

protected
services: IoCServices
protected
symbols: Map<string, symbol>

Methods

CopyTo(ioc: IoCContainer): void
Register<T>(clazz: IoCServiceConstructor<T>, options?: IoCServiceOptions): void | (() => void)
Register<T>(instance: IoCServiceResolver<T>, options?: IoCServiceOptions): void | (() => void)
Register<T>(): void | (() => void)
RegisterDirect(
symbol: symbol,
name: string,
): void | (() => void)
Resolve<T>(ctor: IoCServiceConstructor<T>): Promise<T>
Resolve<T>(ctor: IoCServiceConstructor<T>, name: string): Promise<T>
Resolve<T>(symbol: symbol): Promise<T>
Resolve<T>(symbol: symbol, name: string): Promise<T>
ResolveDirect<T>(ctorSymbol: IoCServiceConstructor<T> | symbol, name?: string): IoCServiceResolutions
Symbol(id: string): symbol