public static IServiceRepository AddScoped <TService, TImplementation>(this IServiceRepository repository)
     where TImplementation : TService
 {
     repository.AddServiceAsScoped(typeof(TService), () => repository.BuildInjectableService <TService, TImplementation>());
     return(repository);
 }
 public static IServiceRepository AddScoped <TService>(this IServiceRepository repository, Func <TService> serviceBuilder)
 {
     repository.AddServiceAsScoped(typeof(TService), () => serviceBuilder);
     return(repository);
 }
 public static IServiceRepository AddScoped <TService>(this IServiceRepository repository)
 {
     repository.AddServiceAsScoped(typeof(TService), () => repository.BuildInjectableService <TService, TService>());
     return(repository);
 }