App.xaml.cs 649 B

1234567891011121314151617181920212223
  1. using Log;
  2. using PLCIOPointTool.Services;
  3. using PLCIOPointTool.Views;
  4. using System.Windows;
  5. namespace PLCIOPointTool;
  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<IOutputService, OutputService>();
  16. containerRegistry.RegisterSingleton<ILog, LogService>();
  17. containerRegistry.RegisterSingleton<ICommunicator, PLCCommunicator>();
  18. }
  19. }