Ejemplo n.º 1
0
 public override Gateway.QuoteTripResponse QuoteTrip(Gateway.QuoteTripRequest request)
 {
     Logger.BeginRequest("QuoteTrip sent to " + server.name, request);
     Gateway.QuoteTripResponse response = server.QuoteTrip(request);
     Logger.EndRequest(response);
     return(response);
 }
Ejemplo n.º 2
0
 public override Gateway.QuoteTripResponse QuoteTrip(Gateway.QuoteTripRequest request)
 {
     Logger.BeginRequest("QuoteTrip received from " + gateway.GetName(request.clientID), request);
     Gateway.QuoteTripResponse response = gateway.QuoteTrip(request);
     Logger.EndRequest(response);
     return(response);
 }
Ejemplo n.º 3
0
        private void RequestQuotesFromPartnerAndAdd(QuoteTripRequest request, List <Quote> quotes, Gateway partner)
        {
            string savedClientID = request.clientID;

            request.clientID = ID;
            QuoteTripResponse response = partner.QuoteTrip(request);

            if (response.result == Result.OK)
            {
                if (response.quotes != null)
                {
                    quotes.AddRange(response.quotes);
                }
            }
            request.clientID = savedClientID;
        }
Ejemplo n.º 4
0
 private void RequestQuotesFromPartnerAndAdd(QuoteTripRequest request, List<Quote> quotes, Gateway partner)
 {
     string savedClientID = request.clientID;
     request.clientID = ID;
     QuoteTripResponse response = partner.QuoteTrip(request);
     if (response.result == Result.OK)
     {
         if (response.quotes != null)
             quotes.AddRange(response.quotes);
     }
     request.clientID = savedClientID;
 }