Skip to content

Commit d9d5756

Browse files
committed
Register ConfigureProductIndexOptions with ConfigureOptions
1 parent 87dc245 commit d9d5756

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Umbraco.Docs.Samples.Web/CustomIndexing/ExamineComposer.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ namespace Umbraco.Docs.Samples.Web.CustomIndexing
77
public class ExamineComposer : IComposer
88
{
99
public void Compose(IUmbracoBuilder builder)
10-
{
10+
{
11+
1112
builder.Services.AddExamineLuceneIndex<ProductIndex, ConfigurationEnabledDirectoryFactory>("ProductIndex");
1213

14+
builder.Services.ConfigureOptions<ConfigureProductIndexOptions>();
15+
1316
builder.Services.AddSingleton<ProductIndexValueSetBuilder>();
1417

1518
builder.Services.AddSingleton<IIndexPopulator, ProductIndexPopulator>();
19+
20+
1621
}
1722
}
1823
}

0 commit comments

Comments
 (0)