public PostcodeServiceClient(IAddressInfoProviderFactory addressInfoProviderFactory) { _serviceClient = addressInfoProviderFactory.CreateProvider(); if (_serviceClient == null) { Enabled = false; } }
//DocSection:Constructor /// <summary> /// Initializes a instances of services required to manage the checkout process. /// </summary> public CheckoutController(IShoppingService shoppingService, IPaymentOptionInfoProvider paymentOption, IShippingOptionInfoProvider shippingOption, ISKUInfoProvider skuInfo, IAddressInfoProvider addressInfo, ICountryInfoProvider countryInfo, IStateInfoProvider stateInfo, IPageRetriever pageRetriever, IPageUrlRetriever pageUrlRetriever) { this.shoppingService = shoppingService; this.pageRetriever = pageRetriever; this.pageUrlRetriever = pageUrlRetriever; this.skuInfo = skuInfo; this.paymentOption = paymentOption; this.shippingOption = shippingOption; this.addressInfo = addressInfo; this.countryInfo = countryInfo; this.stateInfo = stateInfo; }
public AutonomouSystemTracer(ITracer tracer, IAddressInfoProvider infoProvider) { this.tracer = tracer ?? throw new ArgumentNullException(nameof(tracer)); this.infoProvider = infoProvider ?? throw new ArgumentNullException(nameof(infoProvider)); }
/// <summary> /// Initializes a new instance of the <see cref="CustomerAddressRepository"/> class using the address provider given. /// </summary> /// <param name="addressInfoProvider">Provider for <see cref="AddressInfo"/> management.</param> /// <param name="repositoryCacheHelper">Handles caching of retrieved objects.</param> public CustomerAddressRepository(IAddressInfoProvider addressInfoProvider, RepositoryCacheHelper repositoryCacheHelper) { this.addressInfoProvider = addressInfoProvider; this.repositoryCacheHelper = repositoryCacheHelper; }
/// <summary> /// Initializes a new instance of the <see cref="KenticoCustomerAddressRepository"/> class using the address provider given. /// </summary> /// <param name="addressInfoProvider">Provider for <see cref="AddressInfo"/> management.</param> /// <exception cref="ArgumentNullException">Thrown when <paramref name="addressInfoProvider"/> is null.</exception> public KenticoCustomerAddressRepository(IAddressInfoProvider addressInfoProvider) { this.addressInfoProvider = addressInfoProvider ?? throw new ArgumentNullException(nameof(addressInfoProvider)); }
internal StreetProvider(IAddressInfoProvider AddressInfoProvider) : base(AddressInfoProvider) { }
internal CityProvider(IAddressInfoProvider AddressInfoProvider) : base(AddressInfoProvider) { }
internal AddressInfoProviderContainer(IAddressInfoProvider AddressInfoProvider) { _addressInfoProvider = AddressInfoProvider; }
internal BuildingsProvider(IAddressInfoProvider AddressInfoProvider) : base(AddressInfoProvider) { }