DI.registerInterface

Stores the provided instance of type TClass in the DI container to be injected for dependencies of both types TInterface and TClass later.

  1. void registerInterface(TClass value)
    class DI
    @safe pure nothrow
    void
    registerInterface
    (
    TInterface
    TClass
    )
    (
    TClass value
    )
  2. void registerInterface()

Meta