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
Post a Comment