namespace Finch.Raven; public static class FinchIndexExtensions { internal static void RunModifiers(this T index, RavenOptions options) where T : IFinchIndexDefinition { IEnumerable modifiers = options.Indexes.Modifiers.GetAllForType(index.GetType()); foreach (RavenIndexModifiersOptions.Modifier modifier in modifiers) { Action action = modifier.Modify.Compile(); action.Invoke(index); } } }