コード例 #1
0
ファイル: QueueProcessor.cs プロジェクト: WongKyle/xoff
 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>();
 }
コード例 #2
0
 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;
 }