protected override void RegisterViewModels(IDependencyRegistrar dependencyRegistrar) { dependencyRegistrar.Singleton <IShellViewModel, ShellViewModel>(); dependencyRegistrar.Singleton <IMainViewModel, MainViewModel>(); dependencyRegistrar.Singleton <IDashboardViewModel, DashboardViewModel>(); dependencyRegistrar.Singleton <IExercisesViewModel, ExercisesViewModel>(); }
protected override void RegisterViewModels(IDependencyRegistrar dependencyRegistrar) { dependencyRegistrar.Singleton <IShellViewModel, ShellViewModel>(); dependencyRegistrar.Singleton <IMainViewModel, MainViewModel>(); dependencyRegistrar.Singleton <IChampionPickViewModel, ChampionPickViewModel>(); dependencyRegistrar.Singleton <IRoleDisplayViewModel, RoleDisplayViewModel>(); dependencyRegistrar.Singleton <IGameTrackViewModel, GameTrackViewModel>(); }
protected override void RegisterViewModels(IDependencyRegistrar dependencyRegistrar) { if (_registerRootViewModel) { dependencyRegistrar.Singleton <IRootViewModel, RootViewModel>(); } }
protected override void RegisterServices(IDependencyRegistrar dependencyRegistrar) { dependencyRegistrar.Singleton <IEventAggregator, EventAggregator>(); dependencyRegistrar.Singleton <IAppDataService, AppDataService>(); dependencyRegistrar.Singleton <IClipboardService, ClipboardService>(); dependencyRegistrar.Singleton <IDataService, DataService>(); dependencyRegistrar.Singleton <IFileSystemService, FileSystemService>(); dependencyRegistrar.Singleton <IReferencingService, ReferencingService>(); dependencyRegistrar.Singleton <ISettingsService, SettingsService>(); dependencyRegistrar.Singleton <IWebService, WebService>(); }
protected override void RegisterViewModels(IDependencyRegistrar dependencyRegistrar) { dependencyRegistrar.Singleton <IShellViewModel, ShellViewModel>(); dependencyRegistrar.Singleton <IMainViewModel, MainViewModel>(); dependencyRegistrar.Singleton <ISettingsViewModel, SettingsViewModel>(); dependencyRegistrar.Singleton <IFileSystemViewModel, FileSystemViewModel>(); dependencyRegistrar.PerRequest <IFolderViewModel, FolderViewModel>(); dependencyRegistrar.PerRequest <IFileViewModel, FileViewModel>(); dependencyRegistrar.Singleton <IReferenceGeneratorViewModel, ReferenceGeneratorViewModel>(); dependencyRegistrar.Singleton <IReferencesViewModel, ReferencesViewModel>(); dependencyRegistrar.PerRequest <IReferenceViewModel, ReferenceViewModel>(); }
protected override void RegisterViewModels(IDependencyRegistrar dependencyRegistrar) { dependencyRegistrar.Singleton <IShellViewModel, ShellViewModel>(); }
private void RegisterCommonDependencies(IServiceFactory serviceFactory) { _dependencyRegistrar.Singleton <IWindowManager, WindowManager>(); _dependencyRegistrar.Instance(serviceFactory); }
protected override void RegisterServices(IDependencyRegistrar dependencyRegistrar) { dependencyRegistrar.Singleton <IChampionLoader, ChampionLoader>(); dependencyRegistrar.Singleton <IResourceResolver, ResourceResolver>(); dependencyRegistrar.Singleton <IResourceReader, ResourceReader>(); dependencyRegistrar.Singleton <ILocalDirectoryProvider, LocalDirectoryProvider>(); dependencyRegistrar.Singleton <ILaneLoader, LaneLoader>(); dependencyRegistrar.Singleton <IGameMonitor, GameMonitor>(); dependencyRegistrar.Singleton <IThreadRunner, ThreadRunner>(); dependencyRegistrar.Singleton <IGameStatusRetriever, GameStatusRetriever>(); dependencyRegistrar.Singleton <Win32Kit>(); dependencyRegistrar.Handler <IGameWindowManager>(retriever => retriever.GetInstance <Win32Kit>()); dependencyRegistrar.Handler <IGameWindowClicker>(retriever => retriever.GetInstance <Win32Kit>()); dependencyRegistrar.Handler <IGameWindowTyper>(retriever => retriever.GetInstance <Win32Kit>()); dependencyRegistrar.Singleton <IGameImageProcessor, GameImageProcessor>(); dependencyRegistrar.Singleton <IToImageConverter, ToImageConverter>(); dependencyRegistrar.Singleton <ImageHandlerFactory>(); dependencyRegistrar.Handler <IImageHandlerFactory>(retriever => retriever.GetInstance <ImageHandlerFactory>()); dependencyRegistrar.Handler <ISelectedRoleStore>(retriever => retriever.GetInstance <ImageHandlerFactory>().SelectedRoleStore); }