Ejemplo n.º 1
0
        public ModelEventConsumer(IGenericAttributeService genericAttributeService, IStoreContext storeContext, ILogger logger, AfterShipSettings settings)
        {
            _genericAttributeService = genericAttributeService;
            _storeContext            = storeContext;
            _logger   = logger;
            _settings = settings;

            _connection = new AftershipConnection(_settings.ApiKey);
        }
Ejemplo n.º 2
0
 public AfterShipTracker(AfterShipSettings settings, Shipment shipment)
 {
     _countryService          = EngineContext.Current.Resolve <ICountryService>();
     _genericAttributeService = EngineContext.Current.Resolve <IGenericAttributeService>();
     _localizationService     = EngineContext.Current.Resolve <ILocalizationService>();
     _logger      = EngineContext.Current.Resolve <ILogger>();
     _workContext = EngineContext.Current.Resolve <IWorkContext>();
     _settings    = settings;
     _connection  = new AftershipConnection(_settings.ApiKey);
     _shipment    = shipment;
 }