laget.Quartz
1.2.36
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package laget.Quartz --version 1.2.36
NuGet\Install-Package laget.Quartz -Version 1.2.36
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="laget.Quartz" Version="1.2.36" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="laget.Quartz" Version="1.2.36" />
<PackageReference Include="laget.Quartz" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add laget.Quartz --version 1.2.36
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: laget.Quartz, 1.2.36"
#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.
#addin nuget:?package=laget.Quartz&version=1.2.36
#tool nuget:?package=laget.Quartz&version=1.2.36
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
laget.Quartz
A generic implementation of Quartz, an open-source job scheduling system for .NET.
Configuration
This implementation requires
Autofac
since this is the Inversion of Control container of our choosing.
Usage
await Host.CreateDefaultBuilder()
.ConfigureContainer<ContainerBuilder>((context, builder) =>
{
builder.RegisterQuartz();
})
.ConfigureServices((context, services) =>
{
services.AddQuartzService();
})
.Build()
.RunAsync();
await Host.CreateDefaultBuilder()
.ConfigureContainer<ContainerBuilder>((context, builder) =>
{
builder.RegisterQuartz(new NameValueCollection
{
{ "quartz.serializer.type", "binary" },
{ "quartz.scheduler.instanceName", "ThisIsAnInstance" },
{ "quartz.jobStore.type", "Quartz.Simpl.RAMJobStore, Quartz" },
{ "quartz.threadPool.threadCount", "4" }
});
})
.ConfigureServices((context, services) =>
{
services.AddQuartzService();
})
.Build()
.RunAsync();
For a full configuration reference, please take a look at here!
Job
[DisallowConcurrentExecution]
public class SomeJob : laget.Quartz.Job
{
private readonly ISomeService _someService;
// We need this empty constructor as it's used when scheduling the job
public SomeJob()
{
}
public SomeJob(ISomeService someService)
{
_someService = someService;
}
public override async Task ExecuteJob(IJobExecutionContext context)
{
// Do some stuff here!
}
public override ITrigger Trigger => TriggerBuilder
.Create()
.StartNow()
.WithIdentity(Name, Group)
.WithSimpleSchedule(x => x
.WithInterval(Interval)
.WithMisfireHandlingInstructionIgnoreMisfires()
.RepeatForever()
)
.Build();
private static TimeSpan Interval => TimeSpan.FromSeconds(60);
public override string Group => "Group";
public override string Name => nameof(SomeJob);
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Autofac.Extensions.DependencyInjection (>= 8.0.0)
- Autofac.Extras.Quartz (>= 8.0.0)
- Microsoft.Extensions.Hosting (>= 6.0.1)
- Quartz (>= 3.4.0)
- Serilog (>= 2.11.0)
-
.NETStandard 2.1
- Autofac.Extensions.DependencyInjection (>= 8.0.0)
- Autofac.Extras.Quartz (>= 8.0.0)
- Microsoft.Extensions.Hosting (>= 6.0.1)
- Quartz (>= 3.4.0)
- Serilog (>= 2.11.0)
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.2.62 | 100 | 10/22/2024 |
1.2.61 | 157 | 9/3/2024 |
1.2.60 | 141 | 6/3/2024 |
1.2.59 | 158 | 4/5/2024 |
1.2.57 | 128 | 3/20/2024 |
1.2.56 | 253 | 3/4/2024 |
1.2.55 | 280 | 1/20/2024 |
1.2.53 | 117 | 1/20/2024 |
1.2.52 | 239 | 11/22/2023 |
1.2.51 | 183 | 9/4/2023 |
1.2.50 | 217 | 7/3/2023 |
1.2.49 | 199 | 7/3/2023 |
1.2.47 | 248 | 4/3/2023 |
1.2.46 | 283 | 3/10/2023 |
1.2.43 | 283 | 3/6/2023 |
1.2.41 | 314 | 2/6/2023 |
1.2.38 | 344 | 12/5/2022 |
1.2.37 | 419 | 10/3/2022 |
1.2.36 | 459 | 9/5/2022 |
1.2.33 | 469 | 6/7/2022 |
1.2.32 | 500 | 5/2/2022 |
1.2.29 | 483 | 4/4/2022 |
1.2.28 | 468 | 4/4/2022 |
1.2.27 | 497 | 3/7/2022 |
1.2.26 | 355 | 11/28/2021 |
1.2.25 | 402 | 11/1/2021 |
1.2.21 | 459 | 8/17/2021 |
1.2.18 | 448 | 5/21/2021 |
1.1.9 | 426 | 5/13/2021 |