Skip to content

Instantly share code, notes, and snippets.

using Coravel;
using CoravelDemo;
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
var provider = app.Services;
provider.UseScheduler(scheduler =>
yowko / TimedHostedService.cs
Last active August 4, 2023 07:49
Schedule job via HostedService
using System.Timers;
using Cronos;
namespace TimedHostedServiceDemo;
public class TimedHostedService : IHostedService, IDisposable
private readonly ILogger<TimedHostedService> _logger;
private System.Timers.Timer _timer = null;
private readonly CronExpression _expression;
yowko / AzureAutoSettings.cs
Created December 17, 2015 03:35 — forked from davidebbo/AzureAutoSettings.cs
using System;
using System.Collections;
using System.Configuration;
using System.Reflection;
using System.Web;
[assembly: PreApplicationStartMethod(typeof(EnvSettings.SettingsProcessor), "Start")]
namespace EnvSettings