public override void BuildComponents(IComponentBuilder builder) { builder.UseMemoryDataCollector <OsuMemoryDataCollector, OsuProcessMatchedEvent, OsuProcessTerminatedEvent>(); builder.UsePluginOptionsModel <MemoryReader, PorcessListenerConfiguration>(); builder.UseProcessListener(listen => listen .UseLifetimeTracker <OsuProcessTracker, OsuProcessTerminatedEvent>() .UsePredictor <OsuProcessPredicator, OsuProcessMatchedEvent>() ); }
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>(); }