RegistrationInfoTaggedRegistrationContext.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. ConfigurationContextFactory!T register(string identity)
  2. ConfigurationContextFactory!T register()
  3. ConfigurationContextFactory!T register()
    struct RegistrationInfoTaggedRegistrationContext(T : RegistrationContext!Z, alias Z)
    register
    (
    Interface
    T : Interface
    string file = __FILE__
    size_t line = __LINE__
    )
    ()
    if (
    !is(T == Interface)
    )
  4. ConfigurationContextFactory!T register(T value, string identity)
  5. ConfigurationContextFactory!T register(T value)
  6. ConfigurationContextFactory!T register(T value)

Parameters

Interface

interface of registered component that it implements

T

type of registered component

Return Value

Type: ConfigurationContextFactory!T

GenericFactory!T factory for component for further configuration

Meta