public bool Initialize(ChannelInitializationParameter parameter) { if (parameter == null) { return(false); } _param = parameter; _config = XObjectManager.CreateObject <SubscribePublishChannelConfig>(parameter.ConfigXmlString); if (_config == null) { WriteLog(LogType.Error, "Deserialize configuration object failed."); return(false); } _pipeLine = new ProcessingPipeLine(_config.Processors, _param); return(_pipeLine.Initialize()); }
public bool Initialize(ChannelInitializationParameter parameter) { if (parameter == null) { return(false); } _param = parameter; _config = XObjectManager.CreateObject <RequestResponseChannelConfig>(parameter.ConfigXmlString); if (_config == null) { WriteLog(LogType.Error, "Deserialize configuration object failed."); return(false); } _pipeLineReq = new ProcessingPipeLine(_config.RequestMessageProcessors, _param); _pipeLineRsp = new ProcessingPipeLine(_config.ResponseMessageProcessors, _param); return(_pipeLineReq.Initialize() && _pipeLineRsp.Initialize()); }