Container.register

Register a dependency by concrete class type.

A dependency registered by concrete class type can only be resolved by concrete class type. No qualifiers can be used when resolving dependencies which are registered by concrete type.

The default registration scope is "single instance" scope.

  1. Registration register()
    class Container
    Registration
    register
    (
    ConcreteType
    )
    ()
  2. Registration register(RegistrationOptionsTuple options)

Return Value

Type: Registration

A registration is returned which can be used to change the registration scope.

Meta