public static DocodoServiceConfigure AddDocodo(this IServiceCollection col, string IndexStorePath = null) { DocodoService service = new DocodoService(IndexStorePath); col.AddSingleton <IDocodoService>(service); return(new DocodoServiceConfigure(service, col)); }
public DocodoServiceConfigure(DocodoService service, IServiceCollection col) { _service = service; _col = col; }