Example #1
0
		private void AddCancel(long transactionId, DateTimeOffset localTime)
		{
			if (transactionId == 0)
				throw new ArgumentNullException(nameof(transactionId));

			if (localTime.IsDefault())
				throw new ArgumentNullException(nameof(localTime));

			if (_cancel.ContainsKey(transactionId))
				throw new ArgumentException(LocalizedStrings.Str1107Params.Put(transactionId), nameof(transactionId));

			_cancel.Add(transactionId, localTime);
		}