Interface IGetsFailureMessageProvider
An object which can get the appropriate failure message provider for a specified ValidationRuleResult.
Namespace: CSF.Validation.Messages
Assembly: CSF.Validation.Abstractions.dll
Syntax
public interface IGetsFailureMessageProvider
Methods
| Improve this Doc View SourceGetProvider(ValidationRuleResult)
Gets the most appropriate message provider implementation for getting a feedback message for the specified ValidationRuleResult.
Declaration
IGetsFailureMessage GetProvider(ValidationRuleResult ruleResult)
Parameters
Type | Name | Description |
---|---|---|
ValidationRuleResult | ruleResult | The validation rule result for which to get a message provider. |
Returns
Type | Description |
---|---|
IGetsFailureMessage | Either an implementation of IGetsFailureMessage, or a null reference, if no message provider is suitable for the result. |