private void ApplicationStartup(object sender, StartupEventArgs e) { var builder = new DataTransferContainerBuilder(); builder.RegisterModule<DefaultRuntimeEnvironment>(); builder.Build().Resolve<IApplicationController>().GetMainWindow().Show(); }
static int Main(string[] args) { var builder = new DataTransferContainerBuilder(); builder.RegisterModule(new DefaultRuntimeEnvironment(args)); builder .RegisterType<Host>() .AsSelf() .SingleInstance(); return builder.Build().Resolve<Host>().Run(); }