protected override async void OnStartup(StartupEventArgs e) { Contract.serverUrl = ConfigurationManager.AppSettings["serverAddress"]; var container = ConfigureServices(); NetCoreProvider.RegisterServiceLocator(container); LoginCenter viewCenter = new LoginCenter(); await viewCenter.ShowDialog(); }
protected override async void OnStartup(StartupEventArgs e) { base.OnStartup(e); this.ConfigureServices(); var serviceCollection = new ServiceCollection(); ConfigureServices(serviceCollection); var serviceProvider = serviceCollection.BuildServiceProvider(); NetCoreProvider.RegisterServiceLocator(serviceProvider); LoginCenter viewCenter = new LoginCenter(); await viewCenter.ShowDialog(); }