Skip to main content

AssemblyScanner

Class that can be used to find all the validators from a collection of types.

Assembly: ServiceStack.dll
View Source
Declaration
public class AssemblyScanner : IEnumerable<AssemblyScanner.AssemblyScanResult>, IEnumerable

Methods

FindValidatorsInAssembly(Assembly)

Finds all the validators in the specified assembly.

View Source
Declaration
public static AssemblyScanner FindValidatorsInAssembly(Assembly assembly)
Returns

ServiceStack.FluentValidation.AssemblyScanner

Parameters
TypeName
System.Reflection.Assemblyassembly

FindValidatorsInAssemblies(IEnumerable<Assembly>)

Finds all the validators in the specified assemblies

View Source
Declaration
public static AssemblyScanner FindValidatorsInAssemblies(IEnumerable<Assembly> assemblies)
Returns

ServiceStack.FluentValidation.AssemblyScanner

Parameters
TypeName
System.Collections.Generic.IEnumerable<System.Reflection.Assembly>assemblies

FindValidatorsInAssemblyContaining<T>()

Finds all the validators in the assembly containing the specified type.

View Source
Declaration
public static AssemblyScanner FindValidatorsInAssemblyContaining<T>()
Returns

ServiceStack.FluentValidation.AssemblyScanner

Type Parameters
  • T

FindValidatorsInAssemblyContaining(Type)

Finds all the validators in the assembly containing the specified type.

View Source
Declaration
public static AssemblyScanner FindValidatorsInAssemblyContaining(Type type)
Returns

ServiceStack.FluentValidation.AssemblyScanner

Parameters
TypeName
System.Typetype

ForEach(Action<AssemblyScanner.AssemblyScanResult>)

Performs the specified action to all of the assembly scan results.

View Source
Declaration
public void ForEach(Action<AssemblyScanner.AssemblyScanResult> action)
Parameters
TypeName
System.Action<ServiceStack.FluentValidation.AssemblyScanner.AssemblyScanResult>action

GetEnumerator()

Returns an enumerator that iterates through the collection.

View Source
Declaration
public IEnumerator<AssemblyScanner.AssemblyScanResult> GetEnumerator()
Returns

System.Collections.Generic.IEnumerator<ServiceStack.FluentValidation.AssemblyScanner.AssemblyScanResult>: A System.Collections.Generic.IEnumerator%601 that can be used to iterate through the collection.

IEnumerable.GetEnumerator()

View Source
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns

System.Collections.IEnumerator

Implements

  • System.Collections.Generic.IEnumerable<ServiceStack.FluentValidation.AssemblyScanner.AssemblyScanResult>
  • System.Collections.IEnumerable