Parcel.NET.Abstractions 1.0.1

dotnet add package Parcel.NET.Abstractions --version 1.0.1
                    
NuGet\Install-Package Parcel.NET.Abstractions -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Parcel.NET.Abstractions" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Parcel.NET.Abstractions" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Parcel.NET.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Parcel.NET.Abstractions --version 1.0.1
                    
#r "nuget: Parcel.NET.Abstractions, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Parcel.NET.Abstractions@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Parcel.NET.Abstractions&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Parcel.NET.Abstractions&version=1.0.1
                    
Install as a Cake Tool

<p align="center"> <img src="https://raw.githubusercontent.com/emuuu/Parcel.NET/main/parcelNET-logo.svg" alt="Parcel.NET" width="128" /> </p>

Parcel.NET.Abstractions

Shared interfaces and models for Parcel.NET — the carrier-agnostic foundation that all provider packages build on.

NuGet

Installation

dotnet add package Parcel.NET.Abstractions

Key Types

Type Description
IShipmentService Create and cancel shipments across carriers
ITrackingService Track shipments across carriers
ShipmentRequest / ShipmentResponse Carrier-agnostic shipment models
TrackingResult / TrackingEvent Carrier-agnostic tracking models
Address, Package, ContactInfo Shared value types
ShippingException / TrackingException Typed exceptions with StatusCode, ErrorCode, RawResponse

Usage

Program against the abstractions for multi-carrier support:

public class ShipmentController(IShipmentService shipmentService, ITrackingService trackingService)
{
    public async Task<string> Ship(ShipmentRequest request)
    {
        var response = await shipmentService.CreateShipmentAsync(request);
        return response.ShipmentNumber;
    }

    public async Task<TrackingResult> Track(string trackingNumber)
    {
        return await trackingService.TrackAsync(trackingNumber);
    }
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (11)

Showing the top 5 NuGet packages that depend on Parcel.NET.Abstractions:

Package Downloads
Parcel.NET.Dhl

DHL authentication, shared configuration, and DI extensions for Parcel.NET.

Parcel.NET.GoExpress

GO! Express & Logistics authentication, shared configuration, and DI extensions for Parcel.NET.

Parcel.NET.GoExpress.Tracking

GO! Express & Logistics Tracking API client for Parcel.NET.

Parcel.NET.Dhl.Pickup

DHL Parcel DE Pickup API v3 client for Parcel.NET.

Parcel.NET.Dhl.Tracking

DHL Parcel DE Tracking API v0 client (XML) for Parcel.NET.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 280 2/21/2026
1.0.0 282 2/20/2026