Home > typeioc > IContainer > resolveNamedAsync
Asynchronously resolves a service with specific name and optional parameters
Signature:
resolveNamedAsync<R>(service: {}, name: string, ...args: {}[]): Promise<R>;
| Parameter | Type | Description |
|---|---|---|
| service | {} |
service value registered prior resolution |
| name | string |
a unique named used to register a service |
| args | {}[] |
optional arguments for the service instantiation |
Returns:
Promise<R>
null or undefined service value rejects the promise with ArgumentError If null or undefined name value rejects the promise with ArgumentError