예제 #1
0
        static void Main(string[] args)
        {
            var container = ContainerConfig.Configure();

            using (var scope = container.BeginLifetimeScope())
            {
                var application = scope.Resolve <IGZipTestApplication>();
                application.Run(args);
            }
        }
예제 #2
0
        static Program()
        {
            var container = ContainerConfig.Configure();

            using (var scope = container.BeginLifetimeScope())
            {
                GZipProcessor = scope.Resolve <IGZipProcessor>();
                GZipProgress  = scope.Resolve <IGZipProgress>();
            }
        }