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