Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在WPF应用中使用WebHost.CreateDefaultBuilder启动访问不到任务管理页面,在网站项目就没问题 #141

Open
winhoals opened this issue Sep 28, 2022 · 1 comment

Comments

@winhoals
Copy link

        WebHost.CreateDefaultBuilder(Environment.GetCommandLineArgs())
       .Configure((app) =>
       {
           app.UseRouting();
           app.UseSilkierQuartz();
       })
       .ConfigureServices((svc) =>
       {
           svc.AddControllers();
           svc.AddSilkierQuartz(options =>
           {
               options.VirtualPathRoot = "";
               options.UseLocalTime = true;
               options.CronExpressionOptions = new CronExpressionDescriptor.Options()
               {
                   DayOfWeekStartIndexZero = false //Quartz uses 1-7 as the range
               };
           }, authOpt =>
           {
               authOpt.AccessRequirement = SilkierQuartzAuthenticationOptions.SimpleAccessRequirement.AllowAnonymous;
           });
       })
       .Build().Run();
@maikebing
Copy link
Member

这个可能需要你自己调试, 没在WPF中测试过。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants