Example #1
0
 /// <summary>
 /// Returns a collection of <see cref="IShipmentRateQuote"/> from the various configured shipping providers
 /// </summary>
 /// <param name="shipment"><see cref="IShipment"/></param>
 /// <returns>A collection of <see cref="IShipmentRateQuote"/></returns>
 public static IEnumerable <IShipmentRateQuote> ShipmentRateQuotes(this IShipment shipment)
 {
     return(shipment.ShipmentRateQuotes(MerchelloContext.Current));
 }
Example #2
0
 /// <summary>
 /// Returns a collection of <see cref="IShipmentRateQuote"/> from the various configured shipping providers
 /// </summary>
 /// <param name="shipment">The <see cref="IShipment"/></param>
 /// <param name="tryGetCached">
 /// If set true the strategy will try to get a quote from cache
 /// </param>
 /// <returns>A collection of <see cref="IShipmentRateQuote"/></returns>
 public static IEnumerable <IShipmentRateQuote> ShipmentRateQuotes(this IShipment shipment, bool tryGetCached = true)
 {
     return(shipment.ShipmentRateQuotes(MerchelloContext.Current, tryGetCached));
 }