Ejemplo n.º 1
0
        private List <RabbitServerSetting> DecodeServer(RabbitServerSetting serverSetting)
        {
            if (serverSetting == null)
            {
                return(null);
            }
            var servers = new List <RabbitServerSetting>();

            foreach (var item in serverSetting.TypeName.Split(';'))
            {
                var server = serverSetting.Clone();
                server.TypeName = item;
                servers.Add(server);
                if (server.TypeName.Equals(RabbitServerSetting.Public_Server_Key))
                {
                    DefaultServer = server;
                }
            }
            return(servers);
        }