Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="entity"></param>
        public void InsertArea(UploadedMessage entity)
        {
            var msg       = Serialization.ByteArrayToString(entity.Message);
            var validator = new StmSchemaValidator();

            validator.ValidateAreaMessageXML(msg);

            base.Insert(entity);
        }
Beispiel #2
0
        public void S124Parser()
        {
            byte[] msg       = GetMessageRaw(@"STMMessageSamples\S124_01.gml");
            var    msgString = Serialization.ByteArrayToString(msg);

            var validator = new StmSchemaValidator();

            validator.ValidateAreaMessageXML(msgString);

            var parser = new S124Parser(msgString);
            var id     = parser.AreaMessageId;
        }