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
<PackageReference Include="Parcel.NET.Abstractions" Version="1.0.1" />
<PackageVersion Include="Parcel.NET.Abstractions" Version="1.0.1" />
<PackageReference Include="Parcel.NET.Abstractions" />
paket add Parcel.NET.Abstractions --version 1.0.1
#r "nuget: Parcel.NET.Abstractions, 1.0.1"
#:package Parcel.NET.Abstractions@1.0.1
#addin nuget:?package=Parcel.NET.Abstractions&version=1.0.1
#tool nuget:?package=Parcel.NET.Abstractions&version=1.0.1
<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.
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);
}
}
Links
| Product | Versions 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. |
-
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.GoExpress.Shipping
GO! Express & Logistics Shipping (Realtime Order & Label) API client for Parcel.NET. |
GitHub repositories
This package is not used by any popular GitHub repositories.