Add simple read-me optional for authentication

This commit is contained in:
khanhna
2021-05-01 11:26:00 +07:00
parent 03f7340d61
commit 2c6feedccf

View File

@@ -89,6 +89,11 @@ public void ConfigureServices(IServiceCollection services)
public void Configure(IApplicationBuilder app) public void Configure(IApplicationBuilder app)
{ {
/* Optional for authentication
app.UseAuthentication();
app.AddSilkierQuartzAuthentication();
app.UseAuthorization();
*/
app.UseSilkierQuartz(new SilkierQuartzOptions() app.UseSilkierQuartz(new SilkierQuartzOptions()
{ {
Scheduler = scheduler, Scheduler = scheduler,
@@ -96,6 +101,11 @@ public void Configure(IApplicationBuilder app)
UseLocalTime = true, UseLocalTime = true,
DefaultDateFormat = "yyyy-MM-dd", DefaultDateFormat = "yyyy-MM-dd",
DefaultTimeFormat = "HH:mm:ss" DefaultTimeFormat = "HH:mm:ss"
/* Optional for authentication
AccountName = "Your User Name",
AccountPassword = "Your User Password",
IsAuthenticationPersist = false
*/
}); });
} }
``` ```