Exemple #1
0
        public IActionResult Get()
        {
            var result = new Dictionary <string, string>()
            {
                { "Transient 1", _transientService1.operationId().ToString() },
                { "Transient 2", _transientService2.operationId().ToString() },
                { "Scoped 1", _scopedService1.operationId().ToString() },
                { "Scoped 2", _scopedService2.operationId().ToString() },
                { "Singleton 1", _singletonService1.operationId().ToString() },
                { "Singleton 2", _singletonService2.operationId().ToString() }
            };

            return(Ok(result));
        }