Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }