Bamboo.Prevalence.Util.SnapshotTaker.SnapshotTaker C# (CSharp) Method

SnapshotTaker() public method

Creates a new SnapshotTaker for the PrevalenceEngine engine with a period between snapshots equals to period. Files will be removed according to the specified cleanUpPolicy object.
public SnapshotTaker ( PrevalenceEngine engine, System.TimeSpan period, ICleanUpPolicy cleanUpPolicy ) : System
engine Bamboo.Prevalence.PrevalenceEngine prevalence engine to take snapshots from
period System.TimeSpan period between snapshots
cleanUpPolicy ICleanUpPolicy clean up policy
return System
		public SnapshotTaker(PrevalenceEngine engine, TimeSpan period, ICleanUpPolicy cleanUpPolicy)
		{
			if (null == engine)
			{
				throw new ArgumentNullException("engine");
			}			

			if (null == cleanUpPolicy)
			{
				throw new ArgumentNullException("cleanUpPolicy");
			}

			_cleanUpPolicy = cleanUpPolicy;
			_timer = new Timer(new TimerCallback(OnTimer), engine, period, period);			
		}

Same methods

SnapshotTaker::SnapshotTaker ( PrevalenceEngine engine, System.TimeSpan period ) : System