Class ParameterValidatorAspectAttribute
Indicates that the methods of a service may validate their parameters.
Inheritance
Solti.Utils.DI.Interfaces.AspectAttribute
ParameterValidatorAspectAttribute
Inherited Members
Solti.Utils.DI.Interfaces.AspectAttribute.GetInterceptor(Solti.Utils.DI.Interfaces.IInjector, System.Type, System.Object)
Solti.Utils.DI.Interfaces.AspectAttribute.Kind
Namespace: Solti.Utils.Rpc.Interfaces
Assembly: Solti.Utils.Rpc.Interfaces.dll
Syntax
[AttributeUsage(AttributeTargets.Interface, AllowMultiple = false)]
public sealed class ParameterValidatorAspectAttribute : AspectAttribute
Constructors
ParameterValidatorAspectAttribute(Boolean)
Creates a new ParameterValidatorAspectAttribute instance.
Declaration
public ParameterValidatorAspectAttribute(bool aggregate = false)
Parameters
Type | Name | Description |
---|---|---|
Boolean | aggregate |
Properties
Aggregate
Returns true if the validator should collect all the validation errors.
Declaration
public bool Aggregate { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
GetInterceptorType(Type)
Declaration
public override Type GetInterceptorType(Type iface)
Parameters
Type | Name | Description |
---|---|---|
Type | iface |
Returns
Type | Description |
---|---|
Type |
Overrides
Solti.Utils.DI.Interfaces.AspectAttribute.GetInterceptorType(System.Type)