Ejemplo n.º 1
0
        /// <summary>
        /// Constructor with timout property
        /// </summary>
        /// <param name="TimeOut"></param>
        public FlightSearchInfraero(int TimeOut = 10000)
        {
            // INSTANCE CLIENT TO INFRAERO SERVICE
            client = new ConsultaVoosClient();

            // SET DEFAULT TIMEOUT
            client.InnerChannel.OperationTimeout = new TimeSpan(TimeOut);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Dispose
 /// </summary>
 public void Dispose()
 {
     try
     {
         client.Close();
     }
     finally
     {
         client = null;
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 public FlightSearchInfraero()
 {
     // INSTANCE CLIENT TO INFRAERO SERVICE
     client = new ConsultaVoosClient();
 }