コード例 #1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            var dependencies = new Dependencies();
            var container    = dependencies.BuildContainer();

            var mainWindow = container.Resolve <MainWindow>();

            mainWindow.Show();
        }
コード例 #2
0
 private void Test()
 {
     var dependencies = new Dependencies();
     var container    = dependencies.BuildContainer();
     var mainWindow   = container.Resolve <MainWindow>();
 }
コード例 #3
0
 public static void Main(string[] args)
 {
     Dependencies.Configure();
     Dependencies.BuildContainer();
     BuildWebHost(args).Run();
 }