// GET: Home public ActionResult Index([FromServices] IScopedService scopedService) => Content($"{this.singletonService.Id}-{string.Join("-", scopedService.GetValues())}-{string.Join("-", this.transientServices.Select(x => x.Id))}");
public IEnumerable <string> Get([FromServices] IScopedService service, int count) { return(service.GetValues() .Take(count)); }