parsley v0.7.0
Pre-release
Pre-release
Changes
- Adds the
RegisterLazy[T]
method to register a lazy service factory. Use the typeLazy[T]
to consume a lazy service dependency and call itsValue() T
method to request the actual service instance. The lazy instance will create and cache the service instance upon the first request. Each subsequent call to theValue
method will return the cached value.