Exemplo n.º 1
0
        public void Load(object message)
        {
            _log.Info("Loading databus properties on message of type '{0}'.", message.GetType().FullName);

            IEnumerable <DataBusPropertyInfo> dataBusProperties = DataBusPropertiesExtractor.GetDataBusProperties(
                message);

            foreach (DataBusPropertyInfo dataBusPropertyInfo in dataBusProperties)
            {
                //todo make parallel?
                Load(dataBusPropertyInfo, message);
            }
        }
Exemplo n.º 2
0
        public void Offload(object message)
        {
            if (message == null)
            {
                throw new ArgumentNullException("message");
            }

            _log.Info("Offloading databus properties on message of type {0}", message.GetType().FullName);

            IEnumerable <DataBusPropertyInfo> props = DataBusPropertiesExtractor.GetDataBusProperties(message);

            foreach (DataBusPropertyInfo dataBusPropertyInfo in props)
            {
                Offload(dataBusPropertyInfo, message); //todo parallel things?
            }
        }