yuzd / Hangfire.HttpJob

httpjob for Hangfire,restful api for Hangfire,job调度与业务分离
https://github.com/yuzd/Hangfire.HttpJob/wiki
MIT License
626 stars 185 forks source link

options.GlobalSettingJsonFilePath 这句配置代码逻辑有问题? #106

Closed cenbiq closed 3 years ago

cenbiq commented 3 years ago

https://github.com/yuzd/Hangfire.HttpJob/blob/0488819e302e2babc0889224cee7e16e464f36b1/Server/Hangfire.HttpJob/GlobalConfigurationExtension.cs#L55

为什么是文件不存在才ReadAllText并WriteAllText,导致每次运行都会报一个FileNotFoundException。

yuzd commented 3 years ago

多谢你的提醒 ,这个代码不必要了。