public IndexModel( FaceMatchSettings faceMatchSettings, IFaceMatcher faceMatcher, ICannedExample cannedExample, ILogger <IndexModel> logger) { this.FaceMatchSettings = faceMatchSettings; this.faceMatcher = faceMatcher; this.cannedExample = cannedExample; this.logger = logger; }
public static void AddCannedExample(this IServiceCollection services, IConfiguration config) { ICannedExample example = LoadCannedExample(config); services.AddSingleton(example); }