Ejemplo n.º 1
0
        public override void BuildComponents(IComponentBuilder builder)
        {
            // database
            builder.ConfigureDbContext <OsuDatabaseContext>();
            builder.ConfigureDbContext <BeatmapDownloaderDatabaseContext>();

            // configuration
            builder.UseConfigurationModel <BeatmapDownloaderConfiguration>("MultiPlayerDownloaderUI");

            // service
            builder.ConfigureComponent <BeatmapSearchService>().SingleInstance();
            builder.ConfigureComponent <MultiplayerDownloadService>().SingleInstance();
            builder.ConfigureComponent <BeatmapDownloadService>().SingleInstance();

            // download providers
            builder.ConfigureDownloadProvider <SayobotDownloadProvider>();
            builder.ConfigureDownloadProvider <BloodcatDownloadProvider>();
        }
Ejemplo n.º 2
0
        public override void BuildComponents(IComponentBuilder builder)
        {
            // Db context
            builder.ConfigureDbContext <BeatmapDownloaderDatabaseContext>();

            // configurations
            builder.UsePluginOptionsModel <MultiPlayerDownloaderUI, BeatmapDownloaderConfiguration>();

            // view models for UI
            builder.ConfigureComponent <DownloadProvidersViewModel>().SingleInstance();
            builder.ConfigureComponent <DownloadHistoryViewModel>().SingleInstance();

            // configuration UI
            builder.ConfigureUIModel <MultiPlayerDownloaderUI, BeatmapDownloaderConfiguration>();

            // UI
            builder.ConfigureUIComponent <MultiplayerDownloaderTab>();
        }
Ejemplo n.º 3
0
 public override void BuildComponents(IComponentBuilder builder)
 {
     builder.ConfigureDbContext <StatisticContext>();
     builder.ConfigureComponent <StatisticManager>().SingleInstance().PropertiesAutowired();
 }
Ejemplo n.º 4
0
 public override void BuildComponents(IComponentBuilder builder)
 {
     builder.ConfigureDbContext <OsuDatabaseContext>();
     builder.ConfigureComponent <DatabaseSynchronizer>().SingleInstance();
 }