Пример #1
0
 /// <summary>
 /// 从配置文件中初始化连接映射
 /// </summary>
 private void InitConnectionMappings()
 {
     foreach (ConnectionMappingElement mappingElement in WfServiceInvokerSettings.GetConfig().ConnectionMappings)
     {
         this.ConnectionMappings[mappingElement.Name] = mappingElement.Destination;
     }
 }
Пример #2
0
        /// <summary>
        /// 从配置文件中初始化连接映射
        /// </summary>
        private static Dictionary <string, string> GetConnectionMappings()
        {
            Dictionary <string, string> result = new Dictionary <string, string>();

            foreach (ConnectionMappingElement mappingElement in WfServiceInvokerSettings.GetConfig().ConnectionMappings)
            {
                result[mappingElement.Name] = mappingElement.Destination;
            }

            foreach (KeyValuePair <string, string> kp in WfClientServiceBrokerContext.Current.ConnectionMappings)
            {
                result[kp.Value] = kp.Value;
            }

            return(result);
        }