Rename FluidFiltersDelegate to ConfigureFilters

This commit updates the name of the `FluidFiltersDelegate` method to `ConfigureFilters` across the Elsa.Liquid modules. The name change better represents the method's functionality and aligns with the common practice of using accurate naming for describing methods' actions in a more straightforward way.
This commit is contained in:
Sipke Schoorstra 2024-04-26 15:52:38 +02:00
parent 09cda8ecc7
commit 3c8a2ed1a9
3 changed files with 3 additions and 3 deletions

View file

@ -19,6 +19,6 @@ internal static class TemplateContextExtensions
return filter.ProcessAsync(input, arguments, ctx);
});
}
options.FluidFiltersDelegate(templateContext);
options.ConfigureFilters(templateContext);
}
}

View file

@ -34,7 +34,7 @@ public class LiquidFeature : FeatureBase
/// </summary>
public Action<FluidOptions> FluidOptions { get; set; } = options =>
{
options.FluidFiltersDelegate = context => context.Options.Filters
options.ConfigureFilters = context => context.Options.Filters
.WithArrayFilters()
.WithStringFilters()
.WithNumberFilters()

View file

@ -32,5 +32,5 @@ public class FluidOptions
/// <summary>
/// Get or set the fluid filters enabled in Elsa.
/// </summary>
public Action<TemplateContext> FluidFiltersDelegate { get; set; } = _ => { };
public Action<TemplateContext> ConfigureFilters { get; set; } = _ => { };
}