Example #1
0
        public void Configure(FixValidatorSettings settings)
        {
            _settings = settings;

            _cachedHeader.Clear();

            _cachedTrailer.Clear();

            if (_settings.Dictionaries.Count > 0)
            {
                FixDictionary primary = _settings.Dictionaries[0];

                // REC: Preprocess the list of elements in the primary
                // dictionary's header so that it doesn't have to be
                // done every time a message is validated:
                FixDxCollection hdrElements = primary.Resolve(primary.Header);
                foreach (IFixDxElement hdrElement in hdrElements)
                {
                    _cachedHeader.Add(CreateResult(hdrElement));
                }

                // REC: Preprocess the list of elements in the primary
                // dictionary's trailer so that it doesn't have to be
                // done every time a message is validated:
                FixDxCollection trlElements = primary.Resolve(primary.Trailer);
                foreach (IFixDxElement trlElement in trlElements)
                {
                    _cachedTrailer.Add(CreateResult(trlElement));
                }
            }
        }
Example #2
0
        public void Configure(FixValidatorSettings settings)
        {
            _settings = settings;

            _cachedHeader.Clear();

            _cachedTrailer.Clear();

            if (_settings.Dictionaries.Count > 0)
            {
                FixDictionary primary = _settings.Dictionaries[0];

                // REC: Preprocess the list of elements in the primary
                // dictionary's header so that it doesn't have to be
                // done every time a message is validated:
                FixDxCollection hdrElements = primary.Resolve(primary.Header);
                foreach (IFixDxElement hdrElement in hdrElements)
                {
                    _cachedHeader.Add(CreateResult(hdrElement));
                }

                // REC: Preprocess the list of elements in the primary
                // dictionary's trailer so that it doesn't have to be
                // done every time a message is validated:
                FixDxCollection trlElements = primary.Resolve(primary.Trailer);
                foreach (IFixDxElement trlElement in trlElements)
                {
                    _cachedTrailer.Add(CreateResult(trlElement));
                }
            }
        }