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); } }
public HtmlMessage(IMessageConfig messageconfig) { _messageConfig = messageconfig; }
public ConfigMessagesDal(IMessageConfig configuration, IMessageFactory messageFactory) { _configuration = configuration; _messageFactory = messageFactory; }
/// <summary> /// 设置配置类 /// </summary> /// <param name="config"></param> public void SetConfig(IMessageConfig config) { MessageConfig = config; }
public MessageConfig(IMessageConfig source) { CopyFromSource(source); }