From a66c7989e2a6e75c1ef4d9e01fc5607859fb0340 Mon Sep 17 00:00:00 2001 From: Tom Pallister Date: Sat, 4 Aug 2018 08:21:28 +0100 Subject: [PATCH] docs for reloading json --- docs/features/configuration.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/features/configuration.rst b/docs/features/configuration.rst index 220ae2bc4..3f92f1baa 100644 --- a/docs/features/configuration.rst +++ b/docs/features/configuration.rst @@ -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 -----------------