/// <summary>
 /// Creates the object instances for the types contained in the types collection.
 /// </summary>
 /// <returns>A list of objects of type <typeparamref name="TResolved"/>.</returns>
 protected virtual IEnumerable <TResolved> CreateInstances()
 {
     return(ServiceProvider.CreateInstances <TResolved>(InstanceTypes, Logger));
 }