Exemple #1
0
        public override IConfigurationProvider Build(IConfigurationBuilder builder)
        {
            string?json = ParseResponse(jsRuntime.GetFileJS(Path));

            if (json == null)
            {
                throw new FileNotFoundException("The path could not be loaded from the remote server.");
            }

            Stream = new MemoryStream(Encoding.UTF8.GetBytes(json));

            return(base.Build(builder));
        }