public static ITypedConfigurationBuilder SetBasePath(this ITypedConfigurationBuilder builder, string basePath)
        {
            if (builder == null)
            {
                throw new ArgumentNullException(nameof(builder));
            }

            if (basePath == null)
            {
                throw new ArgumentNullException(nameof(basePath));
            }

            return(builder.SetFileProvider(new PhysicalFileProvider(basePath)));
        }