Example #1
0
		public SyncContext(
			IServiceProvider provider,
			IStatisticsContainer statsContainer,
			Func<bool> isSyncCancelled)
		{
			if (statsContainer == null)
				throw new ArgumentNullException("statsContainer");

			_provider = provider;
			_statsContainer = statsContainer;
			_isSyncCancelled = isSyncCancelled;
		}
Example #2
0
		public EndSyncEventArgs(
			[NotNull] IStatisticsContainer statisticsContainer,
			SyncResult result,
			Exception exception)
		{
			if (statisticsContainer == null)
				throw new ArgumentNullException("statisticsContainer");

			_statisticsContainer = statisticsContainer;
			_exception = exception;
			_result = result;
		}