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); }
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); }
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; }
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; }