Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="arg"></param>
        /// <param name="info"></param>
        /// <param name="index"></param>
        private void BuildMessagePropertyWithIndex(object arg, PropertyInfo info, int index)
        {
            var propInfo = new ObjectMessageProperty();

            propInfo.AddToStartArgsIndex(index, propInfo);
            propInfo.Add(info.Name, arg);

            var propValue = info.GetValue(arg);

            PropertyManager.Build(propValue, propInfo);
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="arg"></param>
        /// <param name="index"></param>
        private void BuildArgWithoutProperty(object arg, int index)
        {
            InitalizeCirculationObjects(arg);
            var propInfo = new ObjectMessageProperty();

            PropertyManager.Build(arg, propInfo);

            InitalizeCirculationObjects(arg);
            propInfo = new ObjectMessageProperty();
            propInfo.AddToStartArgsIndex(index, propInfo);
            PropertyManager.Build(arg, propInfo);
        }