Class MessageAssemblyScanner
A service, intended only for use during dependency injection configuration, which provides assembly-scanning logic for validation message provider types.
Inheritance
System.Object
MessageAssemblyScanner
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CSF.Validation.Bootstrap
Assembly: CSF.Validation.dll
Syntax
public static class MessageAssemblyScanner
Methods
| Improve this Doc View SourceGetMessageProviderTypesFromAssemblies(IEnumerable<Assembly>)
Gets a collection of types which are exported by any of the specified searchAssemblies
and which meet the criteria to be a validation message provider class.
Declaration
public static IEnumerable<Type> GetMessageProviderTypesFromAssemblies(IEnumerable<Assembly> searchAssemblies)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<System.Reflection.Assembly> | searchAssemblies | The assemblies to search. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.Type> | A collection of validation message provider types. |
Remarks
Validation rule classes are concrete (non-abstract) classes which derive from any of the following (the closed-generic forms of the interfaces, where applicable):
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | If |