Show / Hide Table of Contents

Class InsrumentingValidatorWrapper

Default implementation of IWrapsValidatorWithInstrumentationSupport.

Inheritance
System.Object
InsrumentingValidatorWrapper
Implements
IWrapsValidatorWithInstrumentationSupport
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
Assembly: CSF.Validation.dll
Syntax
public class InsrumentingValidatorWrapper : IWrapsValidatorWithInstrumentationSupport

Constructors

| Improve this Doc View Source

InsrumentingValidatorWrapper(IServiceProvider)

Initialises a new instance of InsrumentingValidatorWrapper.

Declaration
public InsrumentingValidatorWrapper(IServiceProvider services)
Parameters
Type Name Description
System.IServiceProvider services

A service provider.

Exceptions
Type Condition
System.ArgumentNullException

If services is null.

Methods

| Improve this Doc View Source

WrapValidator(IValidator)

Wraps a non-generic validator with the appropriate behaviour.

Declaration
public IValidator WrapValidator(IValidator validator)
Parameters
Type Name Description
IValidator validator

The validator instance to wrap.

Returns
Type Description
IValidator

A validator, with added instrumentation behaviour.

| Improve this Doc View Source

WrapValidator<TValidated>(IValidator<TValidated>)

Wraps a generic validator with the appropriate behaviour.

Declaration
public IValidator<TValidated> WrapValidator<TValidated>(IValidator<TValidated> validator)
Parameters
Type Name Description
IValidator<TValidated> validator

The validator instance to wrap.

Returns
Type Description
IValidator<TValidated>

A validator, with added instrumentation behaviour.

Type Parameters
Name Description
TValidated

The validated type.

Implements

IWrapsValidatorWithInstrumentationSupport
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX