mirror of
https://github.com/fergalmoran/SilkierQuartz.git
synced 2025-12-22 09:37:56 +00:00
Add simple read-me optional for authentication
This commit is contained in:
10
README.md
10
README.md
@@ -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
|
||||||
|
*/
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user