public void CopyFromSource(IMessageConfig source)
        {
            authenticationMode        = source.AuthenticationMode;
            requestSerializer         = source.RequestSerializer;
            responseSerializerId      = source.ResponseSerializer;
            requestCompressionEngine  = source.RequestCompressor;
            responseCompressionEngine = source.ResponseCompressor;
            timeout               = source.Timeout;
            maxInvokeAttempts     = source.MaxInvokeAttempts;
            endpointConfigMark    = source.EndpointConfigMark;
            transportEngine       = source.TransportEngine;
            supportConnectionMark = source.SupportConnectionMark;

            if (source.Properties.Count > 0)
            {
                Properties = new Dictionary <string, string>(source.Properties);
            }
        }
Пример #2
0
 public HtmlMessage(IMessageConfig messageconfig)
 {
     _messageConfig = messageconfig;
 }
Пример #3
0
 public ConfigMessagesDal(IMessageConfig configuration, IMessageFactory messageFactory)
 {
     _configuration  = configuration;
     _messageFactory = messageFactory;
 }
Пример #4
0
 /// <summary>
 /// 设置配置类
 /// </summary>
 /// <param name="config"></param>
 public void SetConfig(IMessageConfig config)
 {
     MessageConfig = config;
 }
 public MessageConfig(IMessageConfig source)
 {
     CopyFromSource(source);
 }