lifti icon indicating copy to clipboard operation
lifti copied to clipboard

Create a builder implementation for use with ConfigureServices

Open mikegoatly opened this issue 4 years ago • 1 comments

Ideally I'd like to be able to fully configure an implementation of IFullTextIndex such that it's injectable in a fully configured state.

mikegoatly avatar Sep 13 '19 22:09 mikegoatly

This should be a separate nuget package Lifti.Extensions.Microsoft.DependencyInjection?

mikegoatly avatar Oct 28 '19 21:10 mikegoatly

Closing this because it's not hard as it stands to do something like this:

services.AddSingleton<IFullTextIndex<int>>(
    new FullTextIndexBuilder<int>()
         // Your config here
         .Build());

mikegoatly avatar Jan 11 '24 16:01 mikegoatly