Changed OptionsResolver to get Providers by ctor