mirror of
https://github.com/fergalmoran/SilkierQuartz.git
synced 2025-12-22 17:48:10 +00:00
24 lines
581 B
C#
24 lines
581 B
C#
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Quartzmin.AspNetCore
|
|
{
|
|
public class Startup
|
|
{
|
|
public void ConfigureServices(IServiceCollection services)
|
|
{
|
|
services.AddQuartzmin();
|
|
}
|
|
|
|
public void Configure(IApplicationBuilder app)
|
|
{
|
|
app.UseQuartzmin(new QuartzminOptions()
|
|
{
|
|
UseLocalTime = true,
|
|
Scheduler = DemoScheduler.Create().Result,
|
|
VirtualPathRoot = "/test",
|
|
});
|
|
}
|
|
}
|
|
}
|