public PluginControlCommand(IPluginsManager pluginMan, IEventBus eventBus, ILogger <PluginControlCommand> logger, IReadOnlyPluginOptions <MyPluginConfiguration> options)
 {
     _pluginMan = pluginMan;
     _eventBus  = eventBus;
     _logger    = logger;
     _options   = options;
 }
 public BeatmapSearchService(
     ILifetimeScope scope,
     IReadOnlyPluginOptions <BeatmapDownloaderConfiguration> options)
 {
     Scope         = scope;
     OptionFactory = options;
 }
Exemple #3
0
 public MultiplayerDownloadService(
     IReadOnlyPluginOptions <BeatmapDownloaderConfiguration> options,
     BeatmapSearchService search,
     OsuDatabaseContext osuDb,
     ILogger <MultiplayerDownloadService> logger,
     IEventBus eventBus)
 {
     Options  = options;
     Search   = search;
     Logger   = logger;
     OsuDb    = osuDb;
     EventBus = eventBus;
 }
 public BeatmapDownloadService(ILifetimeScope scope,
                               ILogger <BeatmapDownloadService> logger,
                               BeatmapDownloaderDatabaseContext downloadDb,
                               OsuDatabaseContext osuDb,
                               IEventBus eventBus,
                               IReadOnlyPluginOptions <BeatmapDownloaderConfiguration> options)
 {
     Scope         = scope;
     Logger        = logger;
     DownloadDb    = downloadDb;
     OsuDb         = osuDb;
     OptionFactory = options;
     EventBus      = eventBus;
 }