Пример #1
0
        static void Main(string[] args)
        {
            var container = ContainerConfig.Configure();

            using (var scope = container.BeginLifetimeScope())
            {
                var app = scope.Resolve <IApplication>();

                app.Run();
            }

            Console.ReadLine();
        }
Пример #2
0
        static void Main()
        {
            Container = ContainerConfig.Configure();

            using (var scope = Container.BeginLifetimeScope())
            {
                // Resolve services
                var app = scope.Resolve <IApplication>();
                app.Run();
            }

            Console.ReadKey();
        }