Skip to content

Update Quartz.NET sample to .NET 10 and Quartz 3.19.1 - #2121

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/78339-schedule-jobs-with-quartz-net
Open

Update Quartz.NET sample to .NET 10 and Quartz 3.19.1#2121
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/78339-schedule-jobs-with-quartz-net

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Refreshes the dotnet-client-libraries/Quartz.NET sample that backs the Schedule Jobs With Quartz.NET article.

  • Retarget both projects from net7.0 to net10.0.
  • Move Quartz, Quartz.Extensions.Hosting and Quartz.Serialization.Json from 3.5.0 to 3.19.1; bump Microsoft.Extensions.Hosting, Microsoft.Data.SqlClient and the test packages to match.
  • Replace UseJsonSerializer(), which is [Obsolete("Use UseNewtonsoftJsonSerializer instead")] at 3.19.1, with UseNewtonsoftJsonSerializer().
  • Rename builder to host: Host.CreateDefaultBuilder().Build() returns an IHost, not a builder, and the old name teaches the wrong model in the section about hosting.

Builds with 0 warnings and 0 errors; 2/2 tests pass on .NET 10.0.10.

Retarget both projects from net7.0 to net10.0 and move Quartz,
Quartz.Extensions.Hosting and Quartz.Serialization.Json from 3.5.0 to
3.19.1, with the hosting and test packages bumped to match.

Replace the now-obsolete UseJsonSerializer() with its current
replacement UseNewtonsoftJsonSerializer(), and rename the misnamed
builder variable to host, since Host.CreateDefaultBuilder().Build()
returns an IHost rather than a builder.
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

Successfully merging this pull request may close these issues.

1 participant