static void Main(string[] args) { var container = ContainerConfig.Configure(); using (var scope = container.BeginLifetimeScope()) { var application = scope.Resolve <IGZipTestApplication>(); application.Run(args); } }
static Program() { var container = ContainerConfig.Configure(); using (var scope = container.BeginLifetimeScope()) { GZipProcessor = scope.Resolve <IGZipProcessor>(); GZipProgress = scope.Resolve <IGZipProgress>(); } }