Skip to content

IConfiguration Can Not get the new configured data #256

Open
@ArtistRuan

Description

@ArtistRuan

Hello there.When the program is running,IConfiguration can not get the new configured value which is in the appsettings.json file.You have to stop the SqlTableDependency if you want to configure a new value.For example,there is json object in the appsetting.json like:
"person":{
"name":"bob"
}

I change it as below when the program is still running:
"person":{
"name":"jack"
}

string name = IConfiguration["Person:name"];
Console.WriteLine($"name={name}");

you will see that the console show:
name=bob

Is it a bug?Please let know how to get the dynamic value from appsetttings.json.Thx a lot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions