App.xaml.cs 569 B

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