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>(); }
public override void BuildComponents(IComponentBuilder builder) { builder.ConfigureCommandContainer <PluginControlCommand>(); builder.UseConfigurationModel <MyPluginConfiguration>("MyPlugin"); }