Introducing Hangfire Pro
I want to keep Hangfire project as free as possible, but eliminate the most dangerous risk – the absence of time. There are many things to be done, including problems, new features, documentation, and I want to do them in a reasonable time.
I'm introducing a new stage of Hangfire development – Hangfire Pro. It is a set of paid libraries that extend Hangfire functionality by providing features to improve performance and simplifying maintenance of background job processing in larger applications.
Hangfire.Redis package moved to the Pro version. You can read more about these changes in the corresponding blog post.
Generic methods and types support
You can now use generic methods in your background jobs. As always, the usage is very simple:
// Just define a class...
public class GenericServices<TType>
{
public void Method<TMethod>(TType arg1, TMethod arg2)
{
Console.WriteLine("Arg1: {0}, Arg2: {1}", arg1, arg2);
}
}
// ...and create a background job
BackgroundJob.Enqueue<GenericServices<string>>(x => x.Method("hello", 1));
Release Notes
- Added – Support for generic types and methods for background jobs (#222 by @gorbach).
- Added – GetDescription method to Cron (#210 by @djrineh).
- Added – Support for System.Threading.CancellationToken (#211).
- Added – Make Job(Type, MethodInfo, string[]) ctor public (#241).
- Changed – Provide a ceiling value for
WorkerCount
setting (#246). - Fixed – Call
Dispose
method instead ofStop
for graceful shutdown (#244). - Fixed – ArgumentException: No conversion available between
Func
andOwinMiddleware
(#242). - Fixed – Updated UseRabbitMq extension method to actually use the VirtualHost property (#248 by @gaiazov).
- Removed – Hangfire.Redis package was moved to Hangfire Pro.