@arcmantle/adapter-element
    Preparing search index...

    Class RegisterLifetime

    Fluent API class for configuring the lifetime behavior of a binding. Provides methods to set singleton or transient lifetime management.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      Returns RegisterLifetime

    Properties

    binding: Binding

    Methods

    • Registers the binding with a singleton lifetime.
      Meaning the same instance will be returned every time it is resolved from this container.
      If this is bound as a bindOnce, it will be the same instance potentially across multiple containers.

      Returns void

    • Registers the binding with a transient lifetime.
      Meaning a new instance will be returned every time it is resolved from this container.

      Returns void