Skip to content

Instantly share code, notes, and snippets.

View jmprado's full-sized avatar

João Prado jmprado

  • Magix Tecnologia
  • Belo Horizonte, Brasil
View GitHub Profile
@jmprado
jmprado / SkipWhenPreviousJobIsRunningAttribute.cs
Last active October 16, 2023 15:17 — forked from odinserj/SkipWhenPreviousJobIsRunningAttribute.cs
SkipWhenPreviousJobIsRunningAttribute.cs
using System;
using System.Collections.Generic;
using Hangfire.Client;
using Hangfire.Common;
using Hangfire.States;
using Hangfire.Storage;
namespace ConsoleApp28
{
public class SkipWhenPreviousJobIsRunningAttribute : JobFilterAttribute, IClientFilter, IApplyStateFilter