Esempio n. 1
0
 public static void HandleException(Exception ex)
 {
     if (TransportFactory.OnException != null)
     {
         TransportFactory.OnException(ex);
     }
 }
Esempio n. 2
0
        public static ITransport AsyncCompositeConnect(Uri location, SetTransport setTransport)
        {
            ITransportFactory tf = TransportFactory.CreateTransportFactory(location);

            return(tf.CompositeConnect(location, setTransport));
        }
Esempio n. 3
0
        public static ITransport CompositeConnect(Uri location)
        {
            ITransportFactory tf = TransportFactory.CreateTransportFactory(location);

            return(tf.CompositeConnect(location));
        }
Esempio n. 4
0
        /// <summary>
        /// Creates a normal transport.
        /// </summary>
        /// <param name="location"></param>
        /// <returns>the transport</returns>
        public static ITransport CreateTransport(Uri location)
        {
            ITransportFactory tf = TransportFactory.CreateTransportFactory(location);

            return(tf.CreateTransport(location));
        }