AssemblyScanner
Class that can be used to find all the validators from a collection of types.
Assembly: ServiceStack.dll
View Source
public class AssemblyScanner : IEnumerable<AssemblyScanner.AssemblyScanResult>, IEnumerable
Methods
FindValidatorsInAssembly(Assembly)
Finds all the validators in the specified assembly.
View Source
public static AssemblyScanner FindValidatorsInAssembly(Assembly assembly)
Returns
ServiceStack.FluentValidation.AssemblyScanner
Parameters
Type | Name |
---|---|
System.Reflection.Assembly | assembly |
FindValidatorsInAssemblies(IEnumerable<Assembly>)
Finds all the validators in the specified assemblies
View Source
public static AssemblyScanner FindValidatorsInAssemblies(IEnumerable<Assembly> assemblies)
Returns
ServiceStack.FluentValidation.AssemblyScanner
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.Reflection.Assembly> | assemblies |
FindValidatorsInAssemblyContaining<T>()
Finds all the validators in the assembly containing the specified type.
View Source
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
public static AssemblyScanner FindValidatorsInAssemblyContaining(Type type)
Returns
ServiceStack.FluentValidation.AssemblyScanner
Parameters
Type | Name |
---|---|
System.Type | type |
ForEach(Action<AssemblyScanner.AssemblyScanResult>)
Performs the specified action to all of the assembly scan results.
View Source
public void ForEach(Action<AssemblyScanner.AssemblyScanResult> action)
Parameters
Type | Name |
---|---|
System.Action<ServiceStack.FluentValidation.AssemblyScanner.AssemblyScanResult> | action |
GetEnumerator()
Returns an enumerator that iterates through the collection.
View Source
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
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator
Implements
System.Collections.Generic.IEnumerable<ServiceStack.FluentValidation.AssemblyScanner.AssemblyScanResult>
System.Collections.IEnumerable