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:
parent
09cda8ecc7
commit
3c8a2ed1a9
|
|
@ -19,6 +19,6 @@ internal static class TemplateContextExtensions
|
|||
return filter.ProcessAsync(input, arguments, ctx);
|
||||
});
|
||||
}
|
||||
options.FluidFiltersDelegate(templateContext);
|
||||
options.ConfigureFilters(templateContext);
|
||||
}
|
||||
}
|
||||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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; } = _ => { };
|
||||
}
|
||||
Loading…
Reference in a new issue