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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -