Exemplo n.º 1
0
        private void CreateMessageSerializationEngines(SerializationRegistry registry)
        {
            foreach (var mapping in registry.Mappings)
            {
                var messageEngine = MessageSerializationEngine.Create(mapping);

                _messageEnginesByType.Add(messageEngine.MessageType, messageEngine);
                _messageEnginesByTypeId.Add(messageEngine.MessageTypeId, messageEngine);
            }
        }
Exemplo n.º 2
0
        public SerializationEngine(SerializationRegistry registry)
        {
            Encoding = registry.Encoding;

            CreateMessageSerializationEngines(registry);
        }