Parsley v1.3.3
  • GitHub Repo
  • Issues
Powered by
  1. /
  2. Tags /
  3. resolving

Tag: resolving

See all tags.

Registration • Resolving
Lifetime Scopes in Parsley

Parsley allows you to control the lifetime of your service instances through different lifetime scopes. The lifetime setting determines how often the constructor or factory method of a service registration is called and how instances are managed.

Resolving
Passing Specific Instances to the Resolver

Parsley's ResolveWithOptions method allows you to pass specific instances into the resolver, providing certain dependencies dynamically at resolution time. This method is handy when overriding registered dependencies or injecting unregistered instances into your objects.

Resolving
Live Services: Activating Unregistered Dependencies

The Activate method allows you to dynamically create instances using registered services, even if the requested service type is not registered. This approach is helpful for scenarios where you need to instantiate objects on the fly with specific dependencies provided by registered services.

Registration • Resolving
Lazy Proxies

Parsley supports lazy proxies, a powerful feature that allows for the delayed activation of services. A lazy proxy acts as a placeholder for a dependency, deferring its creation until it is needed. This is particularly useful for services that are expensive to create or may not always be required immediately.

Package Reference
resolving

Official documentation for the Parsley resolving package.

  • License Apache 2.0

© Copyright 2026 - Matthias Friedrich. All rights reserved.