Ejemplo n.º 1
0
        public IActionResult Index([FromServices] ITransientService transientService,
                                   [FromServices] IScopedService scopedService, [FromServices] ISingletonService singletonService)
        {
            transientService.DoWork();

            scopedService.DoWork();

            singletonService.DoWork();


            return(View());
        }