ServiceInfo.asRuntime

An internal function, public due to necessity, however will be used to explain the asXXXRuntime functions.

e.g. asSingletonRuntime, asTransientRuntime, and asScopedRuntime.

Notes: Unlike the asTemplated constructor (and things like asSingleton, asScoped, etc.), this function isn't able to produce a list of dependency types, so therefore will need to be provided by you, the user, if you're hoping to make use of ServiceProvider's dependency loop guard.

You only need to provide a list of types that the factory function will try to directly retrieve from a ServiceScope, not the *entire* dependency chain.

struct ServiceInfo
@safe nothrow pure static
asRuntime
(
ServiceLifetime Lifetime
)
(
TypeInfo baseType
,
TypeInfo implType
,,
TypeInfo[] dependencies = null
)

Meta