Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.48 KB

README.md

File metadata and controls

36 lines (25 loc) · 1.48 KB

Hangfire Task Dispatcher

Is a Hangfire extension to manage and deploy tasks from the web UI, this is a command pattern adaption of tracstarr's Hangfire.Core.Dashboard.Management

Installation

This library is available as a NuGet Package: NuGet

Install-Package Hangfire.Extension.TaskDispatcher

Setup

GlobalConfiguration.Configuration
    .UseSqlServerStorage("connectionSting")
    .UseTaskDispatcherPages(args);

Option 1: all taskparameters are concrete objects

in this situation you can pass the assembly where your tasks are located

Option 2: some taskparamters have a generic parameter

in this situation pass the configured list of taskhandlers from DI, this will provide one task in the ui with a drop down of all the configured T's.

Usage

The task parameters from any TaskHandler found will be added to the display. TaskParameter classes can be decorated with a DisplayNameAttribute to override the default displayname generated by the extension. In addition you can add a DiscriptionAttribute to give some extra information about the takss usage.

TaskParameter Parameters can be decorated with a DisplayNameAttribute to override the default displayname generated by the extension.