feat: initial commit

This commit is contained in:
Thom Lamb
2026-06-23 11:26:55 -05:00
parent d472a6cff8
commit 1e042cc5e8
722 changed files with 278037 additions and 1 deletions
@@ -0,0 +1,16 @@
using Hangfire.Common;
using Hangfire.States;
namespace Strata.Stratasphere.Biz.Configuration.Hangfire
{
public class DeleteOnSuccessAttribute : JobFilterAttribute, IElectStateFilter
{
public void OnStateElection(ElectStateContext context)
{
if (context.CandidateState.Name == SucceededState.StateName)
{
context.CandidateState = new DeletedState { Reason = "This job is deleted on success." };
}
}
}
}