Skip to content

Epinova/Epinova.PostnordShipping

Repository files navigation

Epinova.PostnordShipping

Epinova's take on a Postnord shipping API

Quality Gate Status Build status Tests License: MIT Platform

Getting Started

Configuration

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>

Add registry to IoC container

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.

Inject contract and use service

Epinova.PostnordShipping.IDeliveryService describes the main service.

Prerequisites

Installing

The module is published on nuget.org.

nuget install Epinova.PostnordShipping

Target framework

  • .NET Standard 2.0
  • Tests target .NET Core 2.1

Authors

  • Tarjei Olsen - Initial work - apeneve

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

Further reading

Postnord API documentation

About

Epinova's take on a Postnord shipping API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages