https://github.com/ahydrax/Hangfire.MissionControl
A plugin for Hangfire that enables you to launch jobs manually.
https://github.com/ahydrax/Hangfire.MissionControl
hangfire jobs manual
Last synced: 5 months ago
JSON representation
A plugin for Hangfire that enables you to launch jobs manually.
- Host: GitHub
- URL: https://github.com/ahydrax/Hangfire.MissionControl
- Owner: ahydrax
- License: mit
- Created: 2018-11-14T08:54:46.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-09T05:54:26.000Z (almost 2 years ago)
- Last Synced: 2025-04-14T05:47:45.852Z (6 months ago)
- Topics: hangfire, jobs, manual
- Language: C#
- Size: 160 KB
- Stars: 61
- Watchers: 8
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hangfire.MissionControl
[](https://www.nuget.org/packages/Hangfire.MissionControl/)
[](https://www.nuget.org/packages/Hangfire.MissionControl/)
[](https://github.com/ahydrax/Hangfire.MissionControl/actions/workflows/build-and-test.yml)A plugin for Hangfire that enables you to launch jobs manually.

Read about hangfire here: https://github.com/HangfireIO/Hangfire#hangfire-
and here: http://hangfire.io/## Instructions
* Install NuGet package
* Decorate your code with attributes *(all parameters are optional)*
```csharp
[MissionLauncher(CategoryName = "Emails")]
public class EmailSenderMissions
{
[Mission(Name = "Send email",
Description = "Send email to customer",
Queue = "emails")]
public string SendEmail(int customerId, string displayName) => //...code;
}
```
* Setup dashboard code
```csharp
// ASP.NET Core
services.AddHangfire(configuration =>
{
...
configuration.UseMissionControl(
new MissionControlOptions
{
RequireConfirmation = false, // disables confirmation popup
HideCodeSnippet = false // hides code snippet and queue on missions page
},
typeof(TestSuite).Assembly);
});// Or console application
GlobalConfiguration.Configuration.UseMissionControl(typeof(EmailSenderMissions).Assembly);
```## License
Authored by: Viktor Svyatokha (ahydrax)This project is under MIT license. You can obtain the license copy [here](https://github.com/ahydrax/Hangfire.MissionControl/blob/master/LICENSE).