Exemple #1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            var builder = new ServiceProviderBuilder();

            Locator.SetupLocator(builder.UseStartup <Startup>().BuidSeriveProvider());
            base.OnStartup(e);
        }
Exemple #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            var config   = new ServiceProviderBuilder();
            var provider = config.UseStartup <Startup>().BuidSeriveProvider();

            Locator.InitServices(provider);
            base.OnStartup(e);
        }