예제 #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));
 }