public ServerStartupPoshGitClient(IRepositoryCache repositoryCache, ITabCompleter tabCompleter, ILogger log, bool showServer) { _repositoryCache = repositoryCache; _tabCompleter = tabCompleter; _log = log; _showServer = showServer; }
/// <summary> /// Initializes a new instance of the <see cref="StudioArtworkProvider"/> class. /// </summary> /// <param name="httpClientFactory">Instance of the <see cref="IHttpClientFactory"/> interface.</param> /// <param name="repositoryCache">Instance of the <see cref="IRepositoryCache"/> interface.</param> public StudioArtworkProvider( IHttpClientFactory httpClientFactory, IRepositoryCache repositoryCache) { _httpClientFactory = httpClientFactory; _repositoryCache = repositoryCache; }
internal GitHubService(IRepositoryCache cache) { var connection = new Connection( new ProductHeaderValue(ProductHeaderName, ProductHeaderVersion), new GitHubCache(new HttpClientAdapter(HttpMessageHandlerFactory.CreateDefault), cache)); client = new GitHubClient(connection); }
public RepoCacheTestLoop(ILogger log, IRepositoryCache cache, ILifetimeScope scope) { _log = log; _cache = cache; _scope = scope; Console.CancelKeyPress += ConsoleCancelKeyPress; }
public MainViewModel(Func<Valute, ItemViewModel> itemFactory, IRepositoryCache<DailyCurs> dataSource, ICacheUpdater cacheUpdater) { _itemFactory = itemFactory; this.dataSource = dataSource; _cacheUpdater = cacheUpdater; this.dataSource.CashUpdated += CashUpdated; if (!cacheUpdater.IsEnabled) cacheUpdater.Start(); }
public NamedPipePoshGitServer(IRepositoryCache repoCache, ILifetimeScope lifetimeScope, ILogger log) { _log = log; _cancellationTokenSource = new CancellationTokenSource(); _repoCache = repoCache; _serializer = JsonSerializer.Create(); _lifetimeScope = lifetimeScope; log.Information("Server started"); }
public MainViewModel(Func <Valute, ItemViewModel> itemFactory, IRepositoryCache <DailyCurs> dataSource, ICacheUpdater cacheUpdater) { _itemFactory = itemFactory; this.dataSource = dataSource; _cacheUpdater = cacheUpdater; this.dataSource.CashUpdated += CashUpdated; if (!cacheUpdater.IsEnabled) { cacheUpdater.Start(); } }
public MergeRequestProcessor(IGitLabApi api, IRepositoryCache repositoryCache, ICodeOwnersChangeset changeset, ILogger <MergeRequestProcessor> logger, IOptions <GitLabOptions> options) { _api = api; _repositoryCache = repositoryCache; _changeset = changeset; _logger = logger; _options = options.Value; }
public ItemViewModel(Valute selectedItem, IRepositoryCache<QouteCurs> dataSource) { _selectedItem = selectedItem; _selectedDate = DateTime.Now.AddMonths(-1); _dataSource = dataSource; _name = selectedItem.Name; _charCode = selectedItem.CharCode; _id = selectedItem.ID; _nominal = selectedItem.Nominal; _numCode = selectedItem.NumCode; _value = selectedItem.Value; this._dataSource.CashUpdated += _dataSource_CashUpdated; this.UpdateQoutesAsync(); }
public ItemViewModel(Valute selectedItem, IRepositoryCache <QouteCurs> dataSource) { _selectedItem = selectedItem; _selectedDate = DateTime.Now.AddMonths(-1); _dataSource = dataSource; _name = selectedItem.Name; _charCode = selectedItem.CharCode; _id = selectedItem.ID; _nominal = selectedItem.Nominal; _numCode = selectedItem.NumCode; _value = selectedItem.Value; this._dataSource.CashUpdated += _dataSource_CashUpdated; this.UpdateQoutesAsync(); }
public RepositoryService(IRepositoryCache cache) { github = new GitHubService(cache); devops = new DevOpsService(); }
public UserTasksRepository(IRepositoryCache repositoryCache, long userId) { _repositoryCache = repositoryCache; _userId = userId; }
public AdminController(IRepositoryDal _repositoryDal, IRepositoryCache _repositoryCache) { repositoryDal = _repositoryDal; repositoryCache = _repositoryCache; }
public GitHubCache(IHttpClient client, IRepositoryCache cache) { this.client = client ?? throw new ArgumentNullException(nameof(client)); this.cache = cache ?? throw new ArgumentNullException(nameof(cache)); }
public RepositoryBase(IDatabase database, IRepositoryCache cache) { _database = database; _cache = cache; }
public StoreRepository(IRepositoryCache cache, IDataProvider dataProvider) { _cache = cache; _dataProvider = dataProvider; }
/// <summary> /// BirdRepository default constructor /// </summary> public BirdRepository() { _repositoryCache = new RepositoryCache(); }
public UnitOfWork(IRepositoryCache repoCache) { _repoCache = repoCache; }
public Repository(IEventStore storage, IRepositoryCache <T> repositoryCache, IRepositorySnapshotCache <T> repositorySnapshotCache) { _storage = storage; _repositoryCache = repositoryCache; _repositorySnapshotCache = repositorySnapshotCache; }
public void Dispose() { _cache = null; _dataProvider = null; }
public RepositoryFactory(IRepositoryCache repositoryCache) { _repositoryCache = repositoryCache; }
public DefaultCacheUpdater(IRepositoryCache<DailyCurs> dailyCache) { this.dailyCache = dailyCache; this.SetInterval(); updateTimer.Tick += TimerTick; }
public DefaultCacheUpdater(IRepositoryCache <DailyCurs> dailyCache) { this.dailyCache = dailyCache; this.SetInterval(); updateTimer.Tick += TimerTick; }
public BanRepository(IRepositoryCache repositoryCache) { _repositoryCache = repositoryCache; }