private void Execute(Script script, bool evenIfDisabled = false)
        {
            if (script == null)
            {
                return;
            }

            var context = new ScriptExecutionContext(script, _scriptObjectProviders);

            if (evenIfDisabled)
            {
                context.ExecuteEvenIfDisabled();
            }
            else
            {
                context.Execute();
            }
        }
Esempio n. 2
0
        public void Execute(IJobExecutionContext context)
        {
            var scriptContext = new ScriptExecutionContext(_script, _scriptObjectProviders);

            scriptContext.Execute("scheduler", context.ScheduledFireTimeUtc?.DateTime.ToString("s"));
        }