public ShippingUSPSController(USPSSettings uspsSettings, ISettingService settingService, ILocalizationService localizationService) { this._uspsSettings = uspsSettings; this._settingService = settingService; this._localizationService = localizationService; }
public USPSHttpClient(HttpClient client, USPSSettings uspsSettings) { //configure client client.BaseAddress = !string.IsNullOrEmpty(uspsSettings.Url) ? new Uri(uspsSettings.Url) : new Uri(USPSShippingDefaults.DEFAULT_URL); client.Timeout = TimeSpan.FromMilliseconds(5000); client.DefaultRequestHeaders.Add(HeaderNames.UserAgent, $"nopCommerce-{NopVersion.CurrentVersion}"); client.DefaultRequestHeaders.Add(HeaderNames.Accept, MimeTypes.ApplicationXml); _httpClient = client; _uspsSettings = uspsSettings; }
public ShippingUSPSController(ILocalizationService localizationService, INotificationService notificationService, IPermissionService permissionService, ISettingService settingService, USPSSettings uspsSettings) { _localizationService = localizationService; _notificationService = notificationService; _permissionService = permissionService; _settingService = settingService; _uspsSettings = uspsSettings; }
public USPSService(ILogger logger, IMeasureService measureService, IPriceCalculationService priceCalculationService, IShippingService shippingService, IWorkContext workContext, USPSHttpClient uspsHttpClient, USPSSettings uspsSettings) { _logger = logger; _measureService = measureService; _priceCalculationService = priceCalculationService; _shippingService = shippingService; _workContext = workContext; _uspsHttpClient = uspsHttpClient; _uspsSettings = uspsSettings; }
public ShippingUSPSController(USPSSettings uspsSettings, ISettingService settingService) { this._uspsSettings = uspsSettings; this._settingService = settingService; }
public USPSController(USPSSettings uspsSettings, ISettingService settingService) { _uspsSettings = uspsSettings; _settingService = settingService; }