Job Cancellation Token (Hangfire.Core/JobCancellationToken.cs)

Hangfire · src/Hangfire.Core/JobCancellationToken.cs · csharp · LGPL-3.0
automation, infra, lang:csharp, tag:concurrency

Provides cancellation token implementation for Hangfire background jobs. Reuse when managing cancellable background operations.

// Source: https://github.com/HangfireIO/Hangfire | License: LGPL-3.0 | Copyright 2013-2026 Hangfire OÜ | Modified files must remain under LGPL-3.0
// Modifications to this file must remain under LGPL-3.0.
// Provided via justclaw.it.com; keep this notice with the code.
// This file is part of Hangfire. Copyright © 2013-2014 Hangfire OÜ.
// 
// Hangfire is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as 
// published by the Free Software Foundation, either version 3 
// of the License, or any later version.
// 
// Hangfire is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser Gen

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key