public static IServiceRepository AddSingleton <TService, TImplementation>(this IServiceRepository repository)
     where TImplementation : TService
 {
     repository.AddServiceAsSingleton(typeof(TService), () => repository.BuildInjectableService <TService, TImplementation>());
     return(repository);
 }
 public static IServiceRepository AddSingleton <TService>(this IServiceRepository repository)
 {
     repository.AddServiceAsSingleton(typeof(TService), () => repository.BuildInjectableService <TService, TService>());
     return(repository);
 }