public static T Get <T>(this IAppConfigurationRoot configuration, string tenant,
                                Action <AppConfigurationBinderOptions> configureOptions)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration));
            }

            var result = configuration.Get(typeof(T), tenant, configureOptions);

            if (result == null)
            {
                return(default);
 public static T Get <T>(this IAppConfigurationRoot configuration, string tenant)
 {
     return(configuration.Get <T>(tenant, _ => { }));
 }