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() { Container = ContainerConfig.Configure(); using (var scope = Container.BeginLifetimeScope()) { // Resolve services var app = scope.Resolve <IApplication>(); app.Run(); } Console.ReadKey(); }