c# - Disable Property of Azure Functions not working in Visual Studio 2017 -


i have azure function timer trigger.

public static void run([timertrigger("0 */15 * * * *"), disable("true")]timerinfo mytimer, tracewriter log) 

here disable("true") not working. generates function.json "disabled": "true", not correct. should "disabled": true, disable accepts string value. there way change this? or other way disable function?

disable properties default values true.

use disable() instead of disable("true").

so code like

public static void run([timertrigger("0 */15 * * * *"), disable()]timerinfo mytimer, tracewriter log) .

if want enable function use disable("false").


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -