Example #1
0
        public AddonService(
            IServiceProvider serviceProvider,
            IAddonRepository addonRepository,
            IAnalyticsService analyticsService,
            IDownloadService downloadSevice,
            IWarcraftService warcraftService,
            IWowUpService wowUpService)
        {
            _addonRepository = addonRepository;

            _analyticsService = analyticsService;
            _downloadService  = downloadSevice;
            _warcraftService  = warcraftService;
            _wowUpService     = wowUpService;

            _providers = new List <IAddonProvider>
            {
                serviceProvider.GetService <ICurseAddonProvider>(),
                serviceProvider.GetService <ITukUiAddonProvider>(),
                serviceProvider.GetService <IWowInterfaceAddonProvider>(),
                serviceProvider.GetService <IGitHubAddonProvider>()
            };

            InitializeDirectories();
        }
Example #2
0
        public AddonService(
            IServiceProvider serviceProvider,
            IAddonRepository addonRepository,
            IDownloadSevice downloadSevice,
            IWarcraftService warcraftService)
        {
            _addonRepository = addonRepository;
            _downloadService = downloadSevice;
            _warcraftService = warcraftService;

            _providers = new List <IAddonProvider>
            {
                serviceProvider.GetService <CurseAddonProvider>(),
                serviceProvider.GetService <TukUiAddonProvider>()
            };

            InitializeDirectories();
        }
Example #3
0
 public AddonController(IAddonRepository addonRepository)
 {
     this.objcontext = addonRepository;
 }
Example #4
0
 public MigrationService(
     IAddonRepository addonRepository,
     IPreferenceRepository preferenceRepository)
 {
 }
 public AddonController(IAddonRepository addonRepository)
 {
     this.objcontext = addonRepository;
 }