Пример #1
0
        /// <summary>
        /// Convert model to "GeneralMessage".
        /// </summary>
        /// <param name="model">The model to convert.</param>
        /// <returns>The instance of GeneralMessage.</returns>
        public GeneralMessage ConvertToGeneralMessage(object model)
        {
            GeneralMessage message = _modelConvert.ToMessage(model);

            message.Header = _modelHeaderIndicator;
            return(message);
        }
Пример #2
0
 /// <summary>
 /// Convert model to "GeneralMessage".
 /// </summary>
 /// <param name="model">The model to convert.</param>
 /// <returns>The instance of GeneralMessage.</returns>
 public GeneralMessage ConvertToGeneralMessage(object model)
 {
     return(_modelConvert.ToMessage(model));
 }