protected override void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.RegisterInstance(Container); modulesManager = new ModulesManager(); var mainThread = new MainThread(); GlobalApplication.InitializeApplication(mainThread, GlobalApplication.AppBackend.Avalonia); containerRegistry.RegisterInstance <IMainThread>(mainThread); containerRegistry.RegisterInstance(modulesManager); }
protected override void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.RegisterInstance(Container); var vfs = new VirtualFileSystem(); var fs = new FileSystem(vfs); var userSettings = new UserSettings(fs, new DummyStatusBar()); var currentCoreSettings = new CurrentCoreSettings(userSettings); modulesManager = new ModulesManager(currentCoreSettings); var mainThread = new MainThread(); GlobalApplication.InitializeApplication(mainThread, GlobalApplication.AppBackend.Avalonia); containerRegistry.RegisterInstance <IMainThread>(mainThread); containerRegistry.RegisterInstance(modulesManager); }