public QueueProcessor(IRepository <ChangeQueueItem, Guid> repository, IRemoteHandlersServiceLocator serviceLocator, IRepositoryServiceLocator repositoryServiceLocator, IConnectivityChecker connectivityChecker) { _connectivityChecker = connectivityChecker; _repositoryServiceLocator = repositoryServiceLocator; _changeQueueRepository = repository; _serviceLocator = serviceLocator; QueueItemTypes = new Dictionary <Type, Type>(); }
public SyncedRepository(IRepository <TModel, TIdentifier> repository, SyncRepositorySettings settings, IRemoteEntityGetter <TModel, TIdentifier> remoteEntityGetter, IConnectivityChecker connectivityChecker, IChangeQueue <TModel, TIdentifier> changeQueue) { _repository = repository; _settings = settings; _remoteEntityGetter = remoteEntityGetter; _connectivityChecker = connectivityChecker; _changeQueue = changeQueue; }