Exemplo n.º 1
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();
        }