Ejemplo n.º 1
0
        public void ConfigureServices(IServiceCollection services)
        {
            string     FileName   = Process.GetCurrentProcess().MainModule.ModuleName.ToString() + ".ini";
            AppSetting appSetting = AppSetting.Create(FileName);

            services.AddSingleton(appSetting);
            services.AddTransient <MyService>();
            services.AddTransient <MainDataService>();
            services.AddSingleton <PaletteSelectorViewModel>();
            services.AddSingleton <ConfigViewModel>();

            services.AddSingleton <MainWindow>();
            services.AddTransient <ConfigPage>();
        }