Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

ReloadOnChange stops after error in Load #486

Closed
@FlorianRainer

Description

@FlorianRainer

Version 1.0.0
Net: 4.6

I use the ConfigurationBuilder in a simple console application, nothing special
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)

I use a worker to write my config value each second to the output.
Reloading works without problems, but if i save the config file with an error, even if i correct it later it stopps to reload.

but sometimes it happens even if don't save with errors, if i save to fast twice, or at a random number of config changes, maybe ~10.

the problem can be the same, by reading a partialy saved file.
i get no visible exception, but the reloadOnChange stopps.

This is a crucial issue for me cause im using this inside a windows service, and if the config dont change i need to restart the entire service, and its hard to see if changes happen or not.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions