App.xaml.cs 722 B

123456789101112131415161718192021222324
  1. using AlarmInfoServerSim.Services;
  2. using AlarmInfoServerSim.Views;
  3. using System.Windows;
  4. namespace AlarmInfoServerSim
  5. {
  6. /// <summary>
  7. /// Interaction logic for App.xaml
  8. /// </summary>
  9. public partial class App : PrismApplication
  10. {
  11. protected override Window CreateShell() => Container.Resolve<MainWindow>();
  12. protected override void RegisterTypes(IContainerRegistry containerRegistry)
  13. {
  14. //Services
  15. containerRegistry.RegisterSingleton<ILogService,LogService>();
  16. containerRegistry.RegisterSingleton<ISharedConfig, SharedConfig>();
  17. containerRegistry.RegisterSingleton<IInfoSendingService, InfoSendingService>();
  18. }
  19. }
  20. }