Ejemplo n.º 1
0
 public static IServiceCollection AddTextFileEmployeeCatalog(this IServiceCollection services, FileConfiguration fileConfiguration) =>
 services
 .AddSingleton(new TextFileEmployeeCatalog(fileConfiguration))
 .AddSingleton <IEmployeeCatalog>(sp => sp.GetService <TextFileEmployeeCatalog>());