Skip to main content

MemoryValidationSource

Assembly: ServiceStack.dll
View Source
Declaration
public class MemoryValidationSource : IValidationSource, IValidationSourceAdmin, IClearable

Fields

TypeRulesMap

View Source
Declaration
public static readonly ConcurrentDictionary<string, KeyValuePair<string, IValidateRule>[]> TypeRulesMap

Methods

GetValidationRules(Type)

View Source
Declaration
public IEnumerable<KeyValuePair<string, IValidateRule>> GetValidationRules(Type type)
Returns

System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,ServiceStack.IValidateRule>>

Parameters
TypeName
System.Typetype

GetAllValidateRules()

View Source
Declaration
public List<ValidationRule> GetAllValidateRules()
Returns

System.Collections.Generic.List<ServiceStack.ValidationRule>

GetAllValidateRulesAsync()

View Source
Declaration
public Task<List<ValidationRule>> GetAllValidateRulesAsync()
Returns

System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.ValidationRule>>

GetAllValidateRulesAsync(String)

View Source
Declaration
public Task<List<ValidationRule>> GetAllValidateRulesAsync(string typeName)
Returns

System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.ValidationRule>>

Parameters
TypeName
System.StringtypeName

SaveValidationRules(List<ValidationRule>)

View Source
Declaration
public void SaveValidationRules(List<ValidationRule> validateRules)
Parameters
TypeName
System.Collections.Generic.List<ServiceStack.ValidationRule>validateRules

SaveValidationRulesAsync(List<ValidationRule>)

View Source
Declaration
public Task SaveValidationRulesAsync(List<ValidationRule> validateRules)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Collections.Generic.List<ServiceStack.ValidationRule>validateRules

GetValidateRulesByIdsAsync(Int32[])

View Source
Declaration
public Task<List<ValidationRule>> GetValidateRulesByIdsAsync(params int[] ids)
Returns

System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.ValidationRule>>

Parameters
TypeName
System.Int32[]ids

DeleteValidationRulesAsync(Int32[])

View Source
Declaration
public Task DeleteValidationRulesAsync(params int[] ids)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Int32[]ids

ClearCacheAsync()

View Source
Declaration
public Task ClearCacheAsync()
Returns

System.Threading.Tasks.Task

Clear()

View Source
Declaration
public void Clear()

Implements