Extensibility
public interface IAlteration
{
}public interface IAlterationHandler
{
bool CanHandle(IAlteration alteration);
ValueTask HandleAsync(AlterationContext context);
}services.AddElsa(elsa =>
{
elsa.UseAlterations(alterations =>
{
alterations.AddAlteration<MyAlteration, MyAlterationHandler>();
})
});Example
Last updated