mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 12:10:50 +08:00 
			
		
		
		
	docs for reloading json
This commit is contained in:
		@@ -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
 | 
			
		||||
-----------------
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user