Esempio n. 1
0
 public AvcTransformer(IHttpService http, IModuleService moduleService, IGithubApi github)
 {
     _http          = http;
     _moduleService = moduleService;
     _github        = github;
     _vrefValidator = new VrefValidator(_http, _moduleService);
 }
Esempio n. 2
0
 public Uninstallation(IDownloadablesHostsRegistryProvider hostsRegistry, IInstallRegistryProvider installRegistry, IGithubApi githubApi, IKoinoniaLogger logger)
 {
     _hostsRegistry    = hostsRegistry;
     _installsRegistry = installRegistry;
     _githubApi        = githubApi;
     _logger           = logger;
 }
        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);
        }
Esempio n. 4
0
        public GithubTransformer(IGithubApi api, bool matchPreleases)
        {
            if (api == null)
                throw new ArgumentNullException("api");

            _api = api;
            _matchPreleases = matchPreleases;
        }
Esempio 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;
 }
Esempio n. 8
0
 public WebDocumentService(
     IGithubApi githubApi,
     Func <string, IMetaWeblogService> getMetaWeblog,
     IDialogService dialogService)
 {
     this.githubApi     = githubApi;
     this.getMetaWeblog = getMetaWeblog;
     this.dialogService = dialogService;
 }
Esempio 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;
 }
Esempio n. 11
0
        public GithubTransformer(IGithubApi api, bool matchPreleases)
        {
            if (api == null)
            {
                throw new ArgumentNullException("api");
            }

            _api            = api;
            _matchPreleases = matchPreleases;
        }
Esempio 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;
 }
Esempio 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;
 }
Esempio 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;
 }
Esempio 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;
 }
 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;
 }
Esempio n. 17
0
 public UrlAnalyzer(IGithubApi githubApi, IUrlBuilder urlBuilder)
 {
     _githubApi = githubApi;
     _urlBuilder = urlBuilder;
 }
Esempio n. 18
0
 public ItemsDataSource(IGithubApi api)
 {
     this.api = api;
 }
Esempio n. 19
0
 public AvcTransformer(IHttpService http, IModuleService moduleService, IGithubApi github)
 {
     _http          = http;
     _moduleService = moduleService;
     _github        = github;
 }
 public CalculateStatsUsingApiService(IGithubApi githubApi)
 {
     _githubApi = githubApi;
 }
Esempio n. 21
0
 public SpacedockTransformer(ISpacedockApi api, IGithubApi githubApi)
 {
     _api       = api;
     _githubApi = githubApi;
 }
Esempio n. 22
0
 public AvcKrefTransformer(IHttpService http, IGithubApi github)
 {
     httpSvc   = http;
     githubSrc = github;
 }
Esempio n. 23
0
 public MetaNetkanTransformer(IHttpService http, IGithubApi github)
 {
     _http   = http;
     _github = github;
 }
Esempio n. 24
0
 public ApiController(IHttpClientFactory httpClientFactory)
 {
     githubApi = RestService.For <IGithubApi>(httpClientFactory.CreateClient(nameof(IGithubApi)));
 }
Esempio n. 25
0
 public DataStore(IMemoryCache cache, IGithubApi githubApi, IOptions <Options> options)
 {
     this.cache     = cache;
     this.githubApi = githubApi;
     this.options   = options.Value;
 }
Esempio n. 26
0
 public UrlAnalyzer(IGithubApi githubApi)
     : this(githubApi, null)
 {
 }