Function ValueRegistrationContext.register

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

ref ValueRegistrationContext register(T) (
  auto ref T value,
  string identity
);

ref ValueRegistrationContext register(T) (
  auto ref T value
);

ref ValueRegistrationContext register(Interface, T) (
  auto ref T value
);

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

Parameters

NameDescription
value component to be registered in container
identity identity of component in container
T type of component
Interface interface that T component implements

Returns

ValueRegistrationContext