예제 #1
0
        public IActionResult LifeCycle()
        {
            var transient1 = _transient1.GetTaskID();
            var transient2 = _transient2.GetTaskID();
            var scoped1    = _scoped1.GetTaskID();
            var scoped2    = _scoped2.GetTaskID();
            var singleton1 = _singleton1.GetTaskID();
            var singleton2 = _singleton2.GetTaskID();

            return(Ok(new { transient1, transient2, scoped1, scoped2, singleton1, singleton2 }));
        }