コード例 #1
0
        public string Get()
        {
            string result = $"Transient1 : {_transientService1.GetId()} {Environment.NewLine}" +
                            $"Transient2 : {_transientService2.GetId()} {Environment.NewLine}" +
                            $"Scoped1    : {_scopedService1.GetId() } {Environment.NewLine}" +
                            $"Scoped2    : {_scopedService2.GetId()} {Environment.NewLine}" +
                            $"Singleton1  : {_singletonService1.GetId() } {Environment.NewLine}" +
                            $"singleton2    : {_singletonService2.GetId()} {Environment.NewLine}";

            return(result);
        }