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

Tag: lifetime management

See all tags.

Registration
Register Instances

In Parsley, the RegisterInstance method registers a preexisting service instance, particularly useful for objects that cannot be created automatically due to complex configuration, data dependencies, or third-party APIs. Once registered, these instances behave as singletons, meaning the same instance is reused throughout the application. This ensures the registered object is consistently available as a dependency for other services, maintaining consistency and state across your application.

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.

  • License Apache 2.0

© Copyright 2026 - Matthias Friedrich. All rights reserved.