/// <inheritdoc />
 public override void Validate(string errorLocation, string propertyPath = "")
 {
     base.Validate(errorLocation, propertyPath);
     FulcrumValidate.IsNotDefaultValue(LockId, nameof(LockId), errorLocation);
     FulcrumValidate.IsNotNull(TableName, nameof(TableName), errorLocation);
     FulcrumValidate.IsNotDefaultValue(LockedRecordId, nameof(LockedRecordId), errorLocation);
 }
示例#2
0
 /// <inheritdoc />
 public void Validate(string errorLocation, string propertyPath = "")
 {
     if (Enabled)
     {
         FulcrumValidate.IsNotNull(RegexForFindingTenantInUrl, nameof(RegexForFindingTenantInUrl), errorLocation);
     }
 }
 /// <inheritdoc />
 public void Validate(string errorLocation, string propertyPath = "")
 {
     if (Enabled)
     {
         FulcrumValidate.IsNotNull(ServiceConfiguration, nameof(ServiceConfiguration), errorLocation);
     }
 }
示例#4
0
 /// <inheritdoc />
 public void Validate(string errorLocation, string propertyPath = "")
 {
     FulcrumValidate.IsNotNull(Key, nameof(Key), errorLocation);
     FulcrumValidate.IsValidated(Key, propertyPath, nameof(Key), errorLocation);
     FulcrumValidate.IsNotNull(AssociatedKeys, nameof(AssociatedKeys), errorLocation);
     FulcrumValidate.IsValidated(AssociatedKeys, propertyPath, nameof(AssociatedKeys), errorLocation);
 }
 /// <inheritdoc />
 public void Validate(string errorLocation, string propertyPath = "")
 {
     FulcrumValidate.IsNotNullOrWhiteSpace(Originator, nameof(Originator), errorLocation);
     FulcrumValidate.IsNotNull(UtcDateTimeOffset, nameof(UtcDateTimeOffset), errorLocation);
     FulcrumValidate.IsNotDefaultValue(UtcDateTimeOffset, nameof(UtcDateTimeOffset), errorLocation);
     FulcrumValidate.IsNotNull(SeverityLevel, nameof(SeverityLevel), errorLocation);
 }
示例#6
0
 /// <inheritdoc />
 public void Validate(string errorLocation, string propertyPath = "")
 {
     FulcrumValidate.IsNotNull(WaitingForRequestIds, nameof(WaitingForRequestIds), errorLocation);
     foreach (var waitingForRequestId in WaitingForRequestIds)
     {
         FulcrumValidate.IsNotNull(waitingForRequestId, nameof(WaitingForRequestIds), errorLocation);
     }
 }
 /// <inheritdoc />
 public void Validate(string errorLocation, string propertyPath = "")
 {
     FulcrumValidate.IsNotNullOrWhiteSpace(Name, nameof(Name), errorLocation);
     FulcrumValidate.AreNotEqual(RunTimeLevelEnum.None, RunTimeLevel, nameof(RunTimeLevel), errorLocation);
     FulcrumValidate.IsValidated(Tenant, propertyPath, nameof(Tenant), errorLocation);
     FulcrumValidate.IsNotNull(ThreadHandler, nameof(ThreadHandler), errorLocation);
     FulcrumValidate.IsNotNull(SynchronousFastLogger, nameof(SynchronousFastLogger), errorLocation);
     FulcrumValidate.IsNotNull(FallbackLogger, nameof(FallbackLogger), errorLocation);
 }
示例#8
0
 /// <inheritdoc/>
 public override void Validate(string errorLocaction, string propertyPath = "")
 {
     FulcrumValidate.IsNotNull(Id, nameof(Id), errorLocaction);
     FulcrumValidate.IsValidated(Id, propertyPath, nameof(Id), errorLocaction);
     FulcrumValidate.IsNotNullOrWhiteSpace(Name, nameof(Name), errorLocaction);
     FulcrumValidate.IsTrue(Regex.IsMatch(Name, "^[a-zA-Z]+$"), errorLocaction, $"Property {nameof(Name)} must only consist of upper or lower case a-z.");
     FulcrumValidate.IsNotNullOrWhiteSpace(Category, nameof(Category), errorLocaction);
     FulcrumValidate.IsTrue(Regex.IsMatch(Category, "^[a-zA-Z]+$"), errorLocaction, $"Property {nameof(Category)} must only consist of upper or lower case a-z.");
     FulcrumValidate.IsGreaterThanOrEqualTo(0.0, Price, nameof(Price), errorLocaction);
     FulcrumValidate.IsNotDefaultValue(DateAdded, nameof(DateAdded), errorLocaction);
     FulcrumValidate.IsLessThanOrEqualTo(DateTimeOffset.Now, DateAdded, nameof(DateAdded), errorLocaction);
 }
示例#9
0
 /// <inheritdoc />
 public void Validate(string errorLocation, string propertyPath = "")
 {
     FulcrumValidate.IsNotNullOrWhiteSpace(TableName, nameof(TableName), errorLocation);
     FulcrumValidate.IsNotNull(CustomColumnNames, nameof(CustomColumnNames), errorLocation);
     FulcrumValidate.IsNotNull(OrderBy, nameof(OrderBy), errorLocation);
 }
 /// <inheritdoc />
 public virtual void Validate(string errorLocation, string propertyPath = "")
 {
     FulcrumValidate.IsNotNull(ApiVersion, nameof(ApiVersion), errorLocation);
 }
示例#11
0
 /// <inheritdoc />
 public void Validate(string errorLocation, string propertyPath = "")
 {
     FulcrumValidate.IsNotNull(CoolDownStrategy, nameof(CoolDownStrategy), errorLocation);
 }
 /// <inheritdoc cref="IValidatable" />
 public new void Validate(string errorLocation, string propertyPath = "")
 {
     base.Validate(errorLocation, propertyPath);
     FulcrumValidate.IsNotNull(ThrottlingCoolDownStrategy, nameof(ThrottlingCoolDownStrategy), errorLocation);
     FulcrumValidate.IsGreaterThanOrEqualTo(2, ConcurrencyThresholdForChokingResolved, nameof(ConcurrencyThresholdForChokingResolved), errorLocation);
 }
 /// <inheritdoc />
 public virtual void Validate(string errorLocation, string propertyPath = "")
 {
     FulcrumValidate.IsNotNullOrWhiteSpace(Name, nameof(Name), errorLocation);
     FulcrumValidate.IsNotNull(Addresses, nameof(Addresses), errorLocation);
     FulcrumValidate.IsValidated(Addresses, propertyPath, nameof(Addresses), errorLocation);
 }