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>();
        }