RegistrationContext.register

Register a component of type T by identity, type, or interface it implements.

Register a component of type T by identity, type, or interface it implements.

  1. ConfigurableFactoryType!T register(string identity)
    struct RegistrationContext(Policies...)
    register
    (
    T
    string file = __FILE__
    size_t line = __LINE__
    )
    (
    string identity
    )
    if (
    Policies.length > 1
    )
  2. ConfigurableFactoryType!T register()
  3. ConfigurableFactoryType!T register()
  4. ConfigurableFactoryType!T register(T value, string identity)
  5. ConfigurableFactoryType!T register(T value)
  6. ConfigurableFactoryType!T register(T value)

Parameters

T

type of registered component

identity string

identity by which component is stored in storage

Return Value

Type: ConfigurableFactoryType!T

GenericFactory!T factory for component for further configuration

Meta