Skip to main content

ValidateScripts

Assembly: ServiceStack.dll
View Source
Declaration
public class ValidateScripts : ScriptMethods

Properties

RequiredValidators

View Source
Declaration
public static HashSet<string> RequiredValidators { get; }

Inherited Properties

Context

View Source
Declaration
public ScriptContext Context { get; set; }

InvokerCache

View Source
Declaration
public ConcurrentDictionary<string, MethodInvoker> InvokerCache { get; }

Pages

View Source
Declaration
public ISharpPages Pages { get; set; }

Fields

Instance

View Source
Declaration
public static ValidateScripts Instance

Methods

Null()

View Source
Declaration
public IPropertyValidator Null()
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Empty()

View Source
Declaration
public IPropertyValidator Empty()
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Empty(Object)

View Source
Declaration
public IPropertyValidator Empty(object defaultValue)
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Parameters
TypeName
System.ObjectdefaultValue

Equal(Object)

View Source
Declaration
public IPropertyValidator Equal(object value)
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Parameters
TypeName
System.Objectvalue

NotNull()

View Source
Declaration
public IPropertyValidator NotNull()
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

NotEmpty()

View Source
Declaration
public IPropertyValidator NotEmpty()
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

NotEmpty(Object)

View Source
Declaration
public IPropertyValidator NotEmpty(object defaultValue)
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Parameters
TypeName
System.ObjectdefaultValue

NotEqual(Object)

View Source
Declaration
public IPropertyValidator NotEqual(object value)
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Parameters
TypeName
System.Objectvalue

CreditCard()

View Source
Declaration
public IPropertyValidator CreditCard()
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Email()

View Source
Declaration
public IPropertyValidator Email()
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Length(Int32, Int32)

View Source
Declaration
public IPropertyValidator Length(int min, int max)
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Parameters
TypeName
System.Int32min
System.Int32max

ExactLength(Int32)

View Source
Declaration
public IPropertyValidator ExactLength(int length)
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Parameters
TypeName
System.Int32length

MaximumLength(Int32)

View Source
Declaration
public IPropertyValidator MaximumLength(int max)
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Parameters
TypeName
System.Int32max

MinimumLength(Int32)

View Source
Declaration
public IPropertyValidator MinimumLength(int min)
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Parameters
TypeName
System.Int32min

InclusiveBetween(IComparable, IComparable)

View Source
Declaration
public IPropertyValidator InclusiveBetween(IComparable from, IComparable to)
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Parameters
TypeName
System.IComparablefrom
System.IComparableto

ExclusiveBetween(IComparable, IComparable)

View Source
Declaration
public IPropertyValidator ExclusiveBetween(IComparable from, IComparable to)
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Parameters
TypeName
System.IComparablefrom
System.IComparableto

LessThan(Int32)

View Source
Declaration
public IPropertyValidator LessThan(int value)
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Parameters
TypeName
System.Int32value

LessThanOrEqual(Int32)

View Source
Declaration
public IPropertyValidator LessThanOrEqual(int value)
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Parameters
TypeName
System.Int32value

GreaterThan(Int32)

View Source
Declaration
public IPropertyValidator GreaterThan(int value)
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Parameters
TypeName
System.Int32value

GreaterThanOrEqual(Int32)

View Source
Declaration
public IPropertyValidator GreaterThanOrEqual(int value)
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Parameters
TypeName
System.Int32value

ScalePrecision(Int32, Int32)

View Source
Declaration
public IPropertyValidator ScalePrecision(int scale, int precision)
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Parameters
TypeName
System.Int32scale
System.Int32precision

RegularExpression(String)

View Source
Declaration
public IPropertyValidator RegularExpression(string regex)
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Parameters
TypeName
System.Stringregex

Enum(Type)

View Source
Declaration
public IPropertyValidator Enum(Type enumType)
Returns

ServiceStack.FluentValidation.Validators.IPropertyValidator

Parameters
TypeName
System.TypeenumType

IsAuthenticated()

View Source
Declaration
public ITypeValidator IsAuthenticated()
Returns

ServiceStack.ITypeValidator

IsAuthenticated(String)

View Source
Declaration
public ITypeValidator IsAuthenticated(string provider)
Returns

ServiceStack.ITypeValidator

Parameters
TypeName
System.Stringprovider

HasRole(String)

View Source
Declaration
public ITypeValidator HasRole(string role)
Returns

ServiceStack.ITypeValidator

Parameters
TypeName
System.Stringrole

HasRoles(String[])

View Source
Declaration
public ITypeValidator HasRoles(string[] roles)
Returns

ServiceStack.ITypeValidator

Parameters
TypeName
System.String[]roles

HasPermission(String)

View Source
Declaration
public ITypeValidator HasPermission(string permission)
Returns

ServiceStack.ITypeValidator

Parameters
TypeName
System.Stringpermission

HasPermissions(String[])

View Source
Declaration
public ITypeValidator HasPermissions(string[] permission)
Returns

ServiceStack.ITypeValidator

Parameters
TypeName
System.String[]permission

IsAdmin()

View Source
Declaration
public ITypeValidator IsAdmin()
Returns

ServiceStack.ITypeValidator

Inherited Methods

GetInvoker(String, Int32, InvokerType)

View Source
Declaration
public MethodInvoker GetInvoker(string name, int argsCount, InvokerType type)
Returns

ServiceStack.MethodInvoker

Parameters
TypeName
System.Stringname
System.Int32argsCount
ServiceStack.Script.InvokerTypetype

QueryFilters(String)

View Source
Declaration
public List<MethodInfo> QueryFilters(string filterName)
Returns

System.Collections.Generic.List<System.Reflection.MethodInfo>

Parameters
TypeName
System.StringfilterName