ValueRegistrationContext.register

Register a component into value container by identity, type or interface.

Register a component into value container by identity, type or interface.

  1. ValueContext register(T value, string identity)
  2. ValueContext register(T value)
  3. ValueContext register(T value)
    struct ValueRegistrationContext
    register
    (
    Interface
    T : Interface
    )
    (
    auto ref T value
    )

Parameters

value T

component to be registered in container

T

type of component

Interface

interface that T component implements

Return Value

ValueRegistrationContext

Meta