public FailoverTransport CreateTransport(StringDictionary parameters)
        {
            FailoverTransport transport = new FailoverTransport();

            URISupport.SetProperties(transport, parameters, "");
            return(transport);
        }
        /// <summary>
        /// </summary>
        /// <param name="compositData"></param>
        /// <returns></returns>
        public ITransport CreateTransport(URISupport.CompositeData compositData)
        {
            StringDictionary  options   = compositData.Parameters;
            FailoverTransport transport = CreateTransport(options);

            transport.Add(compositData.Components);
            return(transport);
        }
Exemplo n.º 3
0
        public int CompareTo(Object o)
        {
            if (o is FailoverTransport)
            {
                FailoverTransport oo = o as FailoverTransport;

                return(this.id - oo.id);
            }
            else
            {
                throw new ArgumentException();
            }
        }
Exemplo n.º 4
0
 public FailoverTask(FailoverTransport p)
 {
     parent = p;
 }