mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 20:12:51 +08:00
docs for reloading json
This commit is contained in:
parent
89f0cc786a
commit
a66c7989e2
@ -146,6 +146,16 @@ I guess it means if you want to use Ocelot to its fullest you take on Consul as
|
|||||||
|
|
||||||
This feature has a 3 second ttl cache before making a new request to your local consul agent.
|
This feature has a 3 second ttl cache before making a new request to your local consul agent.
|
||||||
|
|
||||||
|
Reload JSON config on change
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Ocelot supports reloading the json configuration file on change. e.g. the following will recreate Ocelots internal configuration when the ocelot.json file is updated
|
||||||
|
manully.
|
||||||
|
|
||||||
|
.. code-block:: json
|
||||||
|
|
||||||
|
config.AddJsonFile("ocelot.json", optional: false, reloadOnChange: true);
|
||||||
|
|
||||||
Configuration Key
|
Configuration Key
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user