App.xaml.cs 666 B

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