public ContentInstaller(EventRaiser eventRaiser, IGameLocker gameLocker,
     IINstallerSessionFactory sessionFactory, IW6Api api) {
     _eventRaiser = eventRaiser;
     _sessionFactory = sessionFactory;
     _api = api;
     _gameLocker = gameLocker;
     _cleaner = new ContentCleaner();
 }
예제 #2
0
 public ContentInstaller(EventRaiser eventRaiser, IGameLocker gameLocker,
                         IINstallerSessionFactory sessionFactory, IW6Api api)
 {
     _eventRaiser    = eventRaiser;
     _sessionFactory = sessionFactory;
     _api            = api;
     _gameLocker     = gameLocker;
     _cleaner        = new ContentCleaner();
 }
예제 #3
0
 public UploadFolderHandler(IDbContextLocator dbContextLocator, IFolderHandler folderHandler,
                            IQueueManager queueManager, IRsyncLauncher rsyncLauncher, IW6Api api)
     : base(dbContextLocator)
 {
     _folderHandler = folderHandler;
     _queueManager  = queueManager;
     _rsyncLauncher = rsyncLauncher;
     _api           = api;
 }
예제 #4
0
 public ApiContext(IApiLocalCache cache, IW6Api api)
 {
     _cache = cache;
     _api   = api;
 }
예제 #5
0
 private Task<List<GroupContent>> GetGroupContent(IW6Api api, CancellationToken ct)
     => api.GroupContent(Id, ct);
예제 #6
0
 private Task<GroupAccess> GetGroupAccess(IW6Api api, CancellationToken ct) => api.GroupAccess(Id, ct);
예제 #7
0
 public async Task Load(IW6Api api, CancellationToken ct) {
     Access = await GetGroupAccess(api, ct).ConfigureAwait(false);
     Content = await GetGroupContent(api, ct).ConfigureAwait(false);
 }
 public NetworkContentSyncer(IDbContextLocator locator, IW6Api api) {
     _locator = locator;
     _collectionSyncer = new CollectionSyncer(locator, this, api);
 }
 public CollectionSyncer(IDbContextLocator locator, NetworkContentSyncer networkContentSyncer, IW6Api api) {
     _locator = locator;
     _networkContentSyncer = networkContentSyncer;
     _api = api;
 }
예제 #10
0
 private Task <List <GroupContent> > GetGroupContent(IW6Api api, CancellationToken ct)
 => api.GroupContent(Id, ct);
예제 #11
0
 private Task <GroupAccess> GetGroupAccess(IW6Api api, CancellationToken ct) => api.GroupAccess(Id, ct);
예제 #12
0
        public async Task Load(IW6Api api, CancellationToken ct)
        {
            Access = await GetGroupAccess(api, ct).ConfigureAwait(false);

            Content = await GetGroupContent(api, ct).ConfigureAwait(false);
        }
예제 #13
0
 public NetworkContentSyncer(ICollectionInfoFetcher infoFetcher, IW6Api api)
 {
     _infoFetcher      = infoFetcher;
     _collectionSyncer = new CollectionSyncer(_infoFetcher, this, api);
 }
예제 #14
0
 public CollectionSyncer(ICollectionInfoFetcher collectionInfoFetcher, INetworkContentSyncer syncer, IW6Api api)
 {
     _collectionInfoFetcher = collectionInfoFetcher;
     _syncer = syncer;
     _api    = api;
 }