// Methods protected override Task ExecuteAsync(CancellationToken stoppingToken) { return(Task.Run(() => { // Execute Console.WriteLine(_settingContext.GetValue()); })); }
// Methods public static void Run(SettingContext settingContext) { #region Contracts if (settingContext == null) { throw new ArgumentException(nameof(settingContext)); } #endregion // SettingContext Console.WriteLine(settingContext.GetValue()); }
// Methods public Task Execute(IJobExecutionContext context) { #region Contracts if (context == null) { throw new ArgumentException(nameof(context)); } #endregion // Execute return(Task.Run(() => { // SettingContext Console.WriteLine(_settingContext.GetValue()); })); }