static void ContainerTest() { var container = ContainerConfig.Configure(); using (var scope = container.BeginLifetimeScope()) { var app = scope.Resolve <IApplication>(); app.Run(); } }
static void Main(string[] args) { var container = ContainerConfig.Configure(); using (var scope = container.BeginLifetimeScope()) { var app = scope.Resolve <IApplication>(); app.Run(); } Console.ReadLine(); }
static void Main(string[] args) { IContainer container = ContainerConfig.Configure(); using (ILifetimeScope scope = container.BeginLifetimeScope()) { Engine app = scope.Resolve <Engine>(); app.Run(); } Console.ReadLine(); }