SilkierQuartzEasyConfig 1.0.0
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package SilkierQuartzEasyConfig --version 1.0.0
NuGet\Install-Package SilkierQuartzEasyConfig -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SilkierQuartzEasyConfig" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SilkierQuartzEasyConfig --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SilkierQuartzEasyConfig, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SilkierQuartzEasyConfig as a Cake Addin #addin nuget:?package=SilkierQuartzEasyConfig&version=1.0.0 // Install SilkierQuartzEasyConfig as a Cake Tool #tool nuget:?package=SilkierQuartzEasyConfig&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SilkierQuartzEasyConfig
Easy Why To Config SilkierQuartz
Why This Created
- SilkierQuartz Document Is Out Of Date
- I Cant Find Why To Configration Quartz Other Than Use quartz.config
- When I Try Use Other Auth With SilkierQuartz Auth A Bug Happen
Setting Up Quartz with SilkierQuartz and RecentHistory Plugin
1. Configure Quartz with Persistent Storage
First, add Quartz with persistent storage. This example uses PostgreSQL along with the SilkierQuartz RecentHistory Plugin:
services.AddQuartz(opt =>
{
opt.UsePersistentStore(o =>
{
o.UsePostgres(Database.Database.Configuration?.GetConnectionString("DefaultConnection")!);
o.UseSystemTextJsonSerializer();
});
// Configure RecentHistory Plugin
opt.Properties.Add("quartz.plugin.recentHistory.type",
"Quartz.Plugins.RecentHistory.ExecutionHistoryPlugin, Quartz.Plugins.RecentHistory");
opt.Properties.Add("quartz.plugin.recentHistory.storeType",
"Quartz.Plugins.RecentHistory.Impl.InProcExecutionHistoryStore, Quartz.Plugins.RecentHistory");
});
2. Configure SilkierQuartz
⚠️ Note: The order of method calls is important.
Step 1: Add Quartz Host Configuration
Place this directly after builder
initialization:
builder.Host.ConfigureSilkierQuartzHost();
Step 2: Add SilkierQuartz Services
Place this before services.AddControllers();
:
services.AddSilkierQuartzEasy(new SilkierQuartzOptions
{
VirtualPathRoot = "/quartz",
UseLocalTime = false
});
Step 3: Configure Authentication
⚠️ Must be added before
AddAuthorization
orAddAuthorizationBuilder
.
builder.Services.AddAuthentication()
.AddSilkierQuartzEasyCookies(new SilkierQuartzAuthenticationOptions
{
AuthScheme = CookieAuthenticationDefaults.AuthenticationScheme,
SilkierQuartzClaim = "Silkier",
SilkierQuartzClaimValue = "Quartz",
UserName = "admin",
UserPassword = "Input Password",
AccessRequirement = SilkierQuartzAuthenticationOptions.SimpleAccessRequirement.AllowOnlyUsersWithClaim,
});
Step 4: Configure Authorization
⚠️ Must be added after
AddAuthentication
(orAddAuthorizationBuilder
).
builder.Services.AddAuthorization(options =>
{
options.AddSilkierQuartzEasyPolicy();
});
Step 5: Finalize Setup in Middleware
⚠️ This must be added before
app.Run()
.
app.UseSilkierQuartzEasy();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- SilkierQuartz (>= 5.0.375)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.1-beta | 40 | 2/11/2025 |
1.0.0 | 72 | 2/11/2025 |