예제 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine($"First value =  {ServiceScope.ToString()}");
            RegisterService();

            Container.Resolve <Service4>();

            Container.Resolve <TrancientService>();

            Container.Resolve <SingleService>();

            Container.Resolve <ScopeService>();

            Console.WriteLine($"Second Value = {ServiceScope.ToString()}");
        }