public ServerStartupPoshGitClient(IRepositoryCache repositoryCache, ITabCompleter tabCompleter, ILogger log, bool showServer)
 {
     _repositoryCache = repositoryCache;
     _tabCompleter = tabCompleter;
     _log = log;
     _showServer = showServer;
 }
示例#2
0
 public ServerStartupPoshGitClient(IRepositoryCache repositoryCache, ITabCompleter tabCompleter, ILogger log, bool showServer)
 {
     _repositoryCache = repositoryCache;
     _tabCompleter    = tabCompleter;
     _log             = log;
     _showServer      = showServer;
 }
示例#3
0
 /// <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;
 }
示例#4
0
    internal GitHubService(IRepositoryCache cache)
    {
        var connection = new Connection(
            new ProductHeaderValue(ProductHeaderName, ProductHeaderVersion),
            new GitHubCache(new HttpClientAdapter(HttpMessageHandlerFactory.CreateDefault), cache));

        client = new GitHubClient(connection);
    }
示例#5
0
        public RepoCacheTestLoop(ILogger log, IRepositoryCache cache, ILifetimeScope scope)
        {
            _log   = log;
            _cache = cache;
            _scope = scope;

            Console.CancelKeyPress += ConsoleCancelKeyPress;
        }
示例#6
0
        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();
 }
示例#8
0
        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 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();
 }
示例#13
0
 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();
 }
示例#14
0
 public RepositoryService(IRepositoryCache cache)
 {
     github = new GitHubService(cache);
     devops = new DevOpsService();
 }
示例#15
0
 public UserTasksRepository(IRepositoryCache repositoryCache, long userId)
 {
     _repositoryCache = repositoryCache;
     _userId          = userId;
 }
示例#16
0
 public AdminController(IRepositoryDal _repositoryDal, IRepositoryCache _repositoryCache)
 {
     repositoryDal   = _repositoryDal;
     repositoryCache = _repositoryCache;
 }
示例#17
0
 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;
 }
示例#19
0
 public StoreRepository(IRepositoryCache cache, IDataProvider dataProvider)
 {
     _cache        = cache;
     _dataProvider = dataProvider;
 }
示例#20
0
 /// <summary>
 /// BirdRepository default constructor
 /// </summary>
 public BirdRepository()
 {
     _repositoryCache = new RepositoryCache();
 }
示例#21
0
 public UnitOfWork(IRepositoryCache repoCache)
 {
     _repoCache = repoCache;
 }
 public Repository(IEventStore storage, IRepositoryCache <T> repositoryCache, IRepositorySnapshotCache <T> repositorySnapshotCache)
 {
     _storage                 = storage;
     _repositoryCache         = repositoryCache;
     _repositorySnapshotCache = repositorySnapshotCache;
 }
示例#23
0
 public void Dispose()
 {
     _cache        = null;
     _dataProvider = null;
 }
示例#24
0
 public RepositoryFactory(IRepositoryCache repositoryCache)
 {
     _repositoryCache = repositoryCache;
 }
 public DefaultCacheUpdater(IRepositoryCache<DailyCurs> dailyCache)
 {
     this.dailyCache = dailyCache;
     this.SetInterval();
     updateTimer.Tick += TimerTick;
 }
示例#26
0
 public DefaultCacheUpdater(IRepositoryCache <DailyCurs> dailyCache)
 {
     this.dailyCache = dailyCache;
     this.SetInterval();
     updateTimer.Tick += TimerTick;
 }
示例#27
0
 public BanRepository(IRepositoryCache repositoryCache)
 {
     _repositoryCache = repositoryCache;
 }