Ejemplo n.º 1
0
        public AddonService(
            IServiceProvider serviceProvider,
            IAddonRepository addonRepository,
            IAnalyticsService analyticsService,
            IDownloadService downloadSevice,
            IWarcraftService warcraftService,
            IWowUpService wowUpService,
            IDependencyRepository dependencyRepository)
        {
            _addonRepository = addonRepository;

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

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

            InitializeDirectories();
        }
Ejemplo n.º 2
0
 public Runner(IConfiguration configuration, IDependencyRepository repository, ISearchFileManager searchFileManager)
     : this()
 {
     _configuration = configuration;
     _repository = repository;
     _searchFileManager = searchFileManager;
 }
Ejemplo n.º 3
0
        public DependencyBinder(IDependencyRepository dependencies, IDependencyInjector dependencyInjector)
        {
            this.dependencies       = dependencies;
            this.dependencyInjector = dependencyInjector;

            cachedSingletons = new Dictionary <Type, Type>();
        }
Ejemplo n.º 4
0
 static Dojector()
 {
     multiBindMap = InternalFactory.Get <IMultiBindCollection>();
     dependencies = InternalFactory.Get <IDependencyRepository>();
     injector     = InternalFactory.Get <IDependencyInjector>();
     binder       = InternalFactory.Get <IDependencyBinder>();
 }
Ejemplo n.º 5
0
 public Runner()
 {
     _configuration = new Configuration.Configuration();
     _repository = new DependencyRepository(new MongoClient(), new Configuration.Configuration());
     _searchFileManager = new SearchFileManager(_configuration);
 }
Ejemplo n.º 6
0
 public void Setup()
 {
     _configuration = new Configuration();
     _dependencyRepository = new DependencyRepository(new MongoClient(), _configuration, "DGraph-tests");
     _dependencyRepository.DeleteAll();
 }
Ejemplo n.º 7
0
 public SearchController(IDependencyRepository dependencyRepository)
 {
     _dependencyRepository = dependencyRepository;
 }
Ejemplo n.º 8
0
 public DependencyInjector(IDependencyRepository dependencies)
 {
     this.dependencies = dependencies;
 }
 public DependencyManager(IDependencyRepository dependencyRepository)
 {
     this.dependencyRepository = dependencyRepository;
 }
Ejemplo n.º 10
0
 public DependencyManager(IDependencyRepository dependencyRepository, IDistributedCache distributedCache, Caching cachingSettings)
 {
     this.dependencyRepository = dependencyRepository;
     this.distributedCache     = distributedCache;
     this.cachingSettings      = cachingSettings;
 }
Ejemplo n.º 11
0
 public DependencyService(IDependencyRepository dependencyRepository)
 {
     _dependencyRepository = dependencyRepository;
 }