示例#1
0
        public SynchronizationTask(ITransactionalStorage storage, SigGenerator sigGenerator, NotificationPublisher publisher, InMemoryRavenConfiguration systemConfiguration)
        {
            this.storage = storage;
            this.publisher = publisher;
            this.systemConfiguration = systemConfiguration;

            context = new SynchronizationTaskContext();
            synchronizationQueue = new SynchronizationQueue();
            synchronizationStrategy = new SynchronizationStrategy(storage, sigGenerator);	
        }
示例#2
0
        public SynchronizationTask(ITransactionalStorage storage, SigGenerator sigGenerator, NotificationPublisher publisher, RavenConfiguration systemConfiguration)
        {
            this.storage             = storage;
            this.publisher           = publisher;
            this.systemConfiguration = systemConfiguration;

            context = new SynchronizationTaskContext();
            synchronizationQueue    = new SynchronizationQueue();
            synchronizationStrategy = new SynchronizationStrategy(storage, sigGenerator, systemConfiguration);
        }
示例#3
0
		public SynchronizationTask(ITransactionalStorage storage, SigGenerator sigGenerator, NotificationPublisher publisher,
								   InMemoryRavenConfiguration systemConfiguration)
		{
			this.storage = storage;
			this.publisher = publisher;
			this.systemConfiguration = systemConfiguration;
            this.timer = Observable.Interval(systemConfiguration.FileSystem.MaximumSynchronizationInterval);

			synchronizationQueue = new SynchronizationQueue();
			synchronizationStrategy = new SynchronizationStrategy(storage, sigGenerator);

		    LastSuccessfulSynchronizationTime = DateTime.MinValue;            

			InitializeTimer();
		}
示例#4
0
        public SynchronizationTask(ITransactionalStorage storage, SigGenerator sigGenerator, NotificationPublisher publisher,
                                   InMemoryRavenConfiguration systemConfiguration)
        {
            this.storage             = storage;
            this.publisher           = publisher;
            this.systemConfiguration = systemConfiguration;
            this.timer = Observable.Interval(systemConfiguration.FileSystem.MaximumSynchronizationInterval);

            synchronizationQueue    = new SynchronizationQueue();
            synchronizationStrategy = new SynchronizationStrategy(storage, sigGenerator);

            LastSuccessfulSynchronizationTime = DateTime.MinValue;

            InitializeTimer();
        }
		public SynchronizationQueueTests()
		{
			queue = new SynchronizationQueue();
		}