Interface IMessageValidator
The message validator interface.
Namespace: FixAntenna.Fix.Validation
Assembly: FixAntenna.Message.dll
Syntax
public interface IMessageValidator
Methods
SetContentValidation(Boolean)
Sets the content validation flag.
Declaration
void SetContentValidation(bool isContentValidation)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isContentValidation | the content validation flag |
Validate(FixMessage)
Validates the message.
Declaration
IValidationResult Validate(FixMessage message)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | the fix message |
Returns
Type | Description |
---|---|
IValidationResult | the result contains the errors collection if it exists. |
Validate(FixMessage, IValidationResult)
Validates the message.
Declaration
void Validate(FixMessage message, IValidationResult result)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | the ValidationResult object to avoid GC |
IValidationResult | result | the fix message |
ValidateContent(String, FixMessage)
Validates the content of message.
Declaration
IValidationResult ValidateContent(string msgType, FixMessage content)
Parameters
Type | Name | Description |
---|---|---|
System.String | msgType | the message type |
FixMessage | content | the content of message |
Returns
Type | Description |
---|---|
IValidationResult |