Skip to content

Commit

Permalink
docs for reloading json
Browse files Browse the repository at this point in the history
  • Loading branch information
TomPallister committed Aug 4, 2018
1 parent 89f0cc7 commit a66c798
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/features/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

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
-----------------

Expand Down

0 comments on commit a66c798

Please sign in to comment.