Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DependencyContainer"/> class.
 /// </summary>
 public DependencyContainer()
 {
     RegisteredTypes = new TypesConcurrentDictionary(this);
     Register(this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RegisterOptions" /> class.
 /// </summary>
 /// <param name="registeredTypes">The registered types.</param>
 /// <param name="registration">The registration.</param>
 public RegisterOptions(TypesConcurrentDictionary registeredTypes, DependencyContainer.TypeRegistration registration)
 {
     _registeredTypes = registeredTypes;
     _registration    = registration;
 }