Epinova's take on a Postnord shipping API
No configuration via config files are needed, but you can override API call timeout via an appSetting. Defaults to 3 seconds.
web.config:
<configuration>
<appSettings>
<!-- Up timeout setting to 5 seconds: -->
<add key="Postnord.Api.TimeOutInSeconds" value="5" />
<appSettings>
</configuration>
If using Structuremap:
container.Configure(
x =>
{
x.Scan(y =>
{
y.TheCallingAssembly();
y.WithDefaultConventions();
});
x.AddRegistry<Epinova.PostnordShipping.DeliveryRegistry>();
});
If you cannot use the structuremap registry provided with this module, you can manually set up DeliveryServiceService for IDeliveryService and CacheHelper for ICacheHelper.
Epinova.PostnordShipping.IDeliveryService describes the main service.
- Epinova.Infrastructure >= v11.1.0.95.
- EPiServer.Framework >= v11.1 for logging purposes.
- Automapper >= v9.0 for mapping models.
- StructureMap >= v4.7 for registering service contract.
The module is published on nuget.org.
nuget install Epinova.PostnordShipping
- .NET Standard 2.0
- Tests target .NET Core 2.1
- Tarjei Olsen - Initial work - apeneve
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details