Container.addProvider

Register a Provider for it's TypeInfo. A name can also be provided to disambiguate when multiple providers are needed

Notes: provider.providedType should be a subType of the type represented by TypeInfo.

  1. void addProvider(TypeInfo type, Provider provider)
  2. void addProvider(TypeInfo type, string name, Provider provider)
    interface Container
    protected
    void
    addProvider
    (
    TypeInfo type
    ,
    string name
    ,)

Meta