Ejemplo n.º 1
0
 public AvcTransformer(IHttpService http, IModuleService moduleService, IGithubApi github)
 {
     _http          = http;
     _moduleService = moduleService;
     _github        = github;
     _vrefValidator = new VrefValidator(_http, _moduleService);
 }
Ejemplo n.º 2
0
 public Uninstallation(IDownloadablesHostsRegistryProvider hostsRegistry, IInstallRegistryProvider installRegistry, IGithubApi githubApi, IKoinoniaLogger logger)
 {
     _hostsRegistry    = hostsRegistry;
     _installsRegistry = installRegistry;
     _githubApi        = githubApi;
     _logger           = logger;
 }
Ejemplo n.º 3
0
        private static async Task <ColumnsResource> GetColumn(IGithubApi githubClient, int projectId, GithubProject project)
        {
            var columns = await githubClient.GetColumns(projectId);

            var doneColumn = columns.First(column => column.Name == project.DoneColumnName);

            return(doneColumn);
        }
Ejemplo n.º 4
0
        public GithubTransformer(IGithubApi api, bool matchPreleases)
        {
            if (api == null)
                throw new ArgumentNullException("api");

            _api = api;
            _matchPreleases = matchPreleases;
        }
Ejemplo n.º 5
0
 public GithubSiteContext(BlogSetting blog,
                          IWebDocumentService webDocumentService,
                          IGithubApi github,
                          IEventAggregator eventAggregator) :
     base(blog, webDocumentService, eventAggregator)
 {
     this.github = github;
 }
 public GithubSiteContext(BlogSetting blog, 
     IWebDocumentService webDocumentService,
     IGithubApi github,
     IEventAggregator eventAggregator) :
     base(blog, webDocumentService, eventAggregator)
 {
     this.github = github;
 }
 public WebDocumentService(
     IGithubApi githubApi, 
     Func<string, IMetaWeblogService> getMetaWeblog, 
     IDialogService dialogService)
 {
     this.githubApi = githubApi;
     this.getMetaWeblog = getMetaWeblog;
     this.dialogService = dialogService;
 }
Ejemplo n.º 8
0
 public WebDocumentService(
     IGithubApi githubApi,
     Func <string, IMetaWeblogService> getMetaWeblog,
     IDialogService dialogService)
 {
     this.githubApi     = githubApi;
     this.getMetaWeblog = getMetaWeblog;
     this.dialogService = dialogService;
 }
Ejemplo n.º 9
0
        public GithubControlViewModel(GlobalConfig globalConfig, IGithubApi githubApi, IDialogService dialogService)
        {
            _globalConfig  = globalConfig;
            _githubApi     = githubApi;
            _dialogService = dialogService;

            InitCommands();
            LoadGithubInfos();
        }
 public OpenFromWebViewModel(
     IDialogService dialogService, 
     Func<string, IMetaWeblogService> getMetaWeblog,
     ITaskSchedulerFactory taskScheduler, IGithubApi github)
 {
     this.dialogService = dialogService;
     this.getMetaWeblog = getMetaWeblog;
     this.taskScheduler = taskScheduler;
     this.github = github;
 }
Ejemplo n.º 11
0
        public GithubTransformer(IGithubApi api, bool matchPreleases)
        {
            if (api == null)
            {
                throw new ArgumentNullException("api");
            }

            _api            = api;
            _matchPreleases = matchPreleases;
        }
Ejemplo n.º 12
0
 public OpenFromWebViewModel(
     IDialogService dialogService,
     Func <string, IMetaWeblogService> getMetaWeblog,
     ITaskSchedulerFactory taskScheduler, IGithubApi github)
 {
     this.dialogService = dialogService;
     this.getMetaWeblog = getMetaWeblog;
     this.taskScheduler = taskScheduler;
     this.github        = github;
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SettingsController" /> class.
 /// </summary>
 /// <param name="resolver">The resolver.</param>
 /// <param name="mapper">The mapper.</param>
 /// <param name="templateRepo">The templateRepo.</param>
 /// <param name="embyApi">The embyApi.</param>
 /// <param name="radarrSync">The radarrCacher.</param>
 /// <param name="memCache">The memory cache.</param>
 /// <param name="githubApi">The memory cache.</param>
 public SettingsController(ISettingsResolver resolver,
                           IMapper mapper,
                           INotificationTemplatesRepository templateRepo,
                           IEmbyApi embyApi,
                           IRadarrSync radarrSync,
                           ICacheService memCache,
                           IGithubApi githubApi)
 {
     SettingsResolver   = resolver;
     Mapper             = mapper;
     TemplateRepository = templateRepo;
     _embyApi           = embyApi;
     _radarrSync        = radarrSync;
     _cache             = memCache;
     _githubApi         = githubApi;
 }
Ejemplo n.º 14
0
 public SettingsController(ISettingsResolver resolver,
                           IMapper mapper,
                           INotificationTemplatesRepository templateRepo,
                           IEmbyApi embyApi,
                           ICacheService memCache,
                           IGithubApi githubApi,
                           IRecentlyAddedEngine engine)
 {
     SettingsResolver   = resolver;
     Mapper             = mapper;
     TemplateRepository = templateRepo;
     _embyApi           = embyApi;
     _cache             = memCache;
     _githubApi         = githubApi;
     _recentlyAdded     = engine;
 }
Ejemplo n.º 15
0
 public SiteContextGenerator(
     IEventAggregator eventAggregator, 
     IDialogService dialogService,
     IFileSystem fileSystem, 
     IFileSystemWatcherFactory fileSystemWatcherFactory, 
     Func<string, IMetaWeblogService> getMetaWeblog, 
     IWebDocumentService webDocumentService, 
     IGithubApi github)
 {
     this.eventAggregator = eventAggregator;
     this.dialogService = dialogService;
     this.fileSystem = fileSystem;
     this.fileSystemWatcherFactory = fileSystemWatcherFactory;
     this.getMetaWeblog = getMetaWeblog;
     this.webDocumentService = webDocumentService;
     this.github = github;
 }
Ejemplo n.º 16
0
 public SiteContextGenerator(
     IEventAggregator eventAggregator,
     IDialogService dialogService,
     IFileSystem fileSystem,
     IFileSystemWatcherFactory fileSystemWatcherFactory,
     Func <string, IMetaWeblogService> getMetaWeblog,
     IWebDocumentService webDocumentService,
     IGithubApi github)
 {
     this.eventAggregator          = eventAggregator;
     this.dialogService            = dialogService;
     this.fileSystem               = fileSystem;
     this.fileSystemWatcherFactory = fileSystemWatcherFactory;
     this.getMetaWeblog            = getMetaWeblog;
     this.webDocumentService       = webDocumentService;
     this.github = github;
 }
Ejemplo n.º 17
0
 public UrlAnalyzer(IGithubApi githubApi, IUrlBuilder urlBuilder)
 {
     _githubApi = githubApi;
     _urlBuilder = urlBuilder;
 }
Ejemplo n.º 18
0
 public ItemsDataSource(IGithubApi api)
 {
     this.api = api;
 }
Ejemplo n.º 19
0
 public AvcTransformer(IHttpService http, IModuleService moduleService, IGithubApi github)
 {
     _http          = http;
     _moduleService = moduleService;
     _github        = github;
 }
 public CalculateStatsUsingApiService(IGithubApi githubApi)
 {
     _githubApi = githubApi;
 }
Ejemplo n.º 21
0
 public SpacedockTransformer(ISpacedockApi api, IGithubApi githubApi)
 {
     _api       = api;
     _githubApi = githubApi;
 }
Ejemplo n.º 22
0
 public AvcKrefTransformer(IHttpService http, IGithubApi github)
 {
     httpSvc   = http;
     githubSrc = github;
 }
Ejemplo n.º 23
0
 public MetaNetkanTransformer(IHttpService http, IGithubApi github)
 {
     _http   = http;
     _github = github;
 }
Ejemplo n.º 24
0
 public ApiController(IHttpClientFactory httpClientFactory)
 {
     githubApi = RestService.For <IGithubApi>(httpClientFactory.CreateClient(nameof(IGithubApi)));
 }
Ejemplo n.º 25
0
 public DataStore(IMemoryCache cache, IGithubApi githubApi, IOptions <Options> options)
 {
     this.cache     = cache;
     this.githubApi = githubApi;
     this.options   = options.Value;
 }
Ejemplo n.º 26
0
 public UrlAnalyzer(IGithubApi githubApi)
     : this(githubApi, null)
 {
 }