Enterspeed.Delivery.Sdk
1.3.0
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Enterspeed.Delivery.Sdk --version 1.3.0
NuGet\Install-Package Enterspeed.Delivery.Sdk -Version 1.3.0
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="Enterspeed.Delivery.Sdk" Version="1.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Enterspeed.Delivery.Sdk --version 1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Enterspeed.Delivery.Sdk, 1.3.0"
#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.
// Install Enterspeed.Delivery.Sdk as a Cake Addin #addin nuget:?package=Enterspeed.Delivery.Sdk&version=1.3.0 // Install Enterspeed.Delivery.Sdk as a Cake Tool #tool nuget:?package=Enterspeed.Delivery.Sdk&version=1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Enterspeed Delivery .NET SDK ·
Installation
With .NET CLI
dotnet add package Enterspeed.Delivery.Sdk --version <version>
With Package Manager
Install-Package Enterspeed.Delivery.Sdk -Version <version>
How to use
Register services
Service has to be added to the service collection. This can be one by using the following extension method.
using IHost host = Host.CreateDefaultBuilder(args)
.ConfigureServices((_, services) =>
services.AddEnterspeedDeliveryService())
.Build();
Examples of usage
Example of a common implementation where the delivery service is being utilized.
using Enterspeed.Delivery.Sdk.Api.Models;
using Enterspeed.Delivery.Sdk.Api.Services;
namespace DeliverySdkStronglyTypeTest;
public class TestService
{
private readonly IEnterspeedDeliveryService _enterspeedDeliveryService;
public TestService(IEnterspeedDeliveryService enterspeedDeliveryService)
{
_enterspeedDeliveryService = enterspeedDeliveryService;
}
// Handle that has been setup to return a view in Enterspeed.
public async Task<DeliveryApiResponse> WithHandle()
{
var response =await _enterspeedDeliveryService.Fetch("environment-******-****-****-****-**********", builder => builder.WithHandle("navigation"));
return response;
}
// Example method that calls a Url route in Enterspeed.
public async Task<DeliveryApiResponse> WithUrl()
{
var response = await _enterspeedDeliveryService.Fetch("environment-******-****-****-****-**********", builder => builder.WithUrl("http://localhost:3000/"));
return response;
}
// Example method that calls a fully qualified url in Enterspeed. This is typically used in cojunction with a webhook from Enterspeed.
// Weebhook typically returns an Delivery Api Url. This means that we do not need to construct a Delivery Api Url in code.
public async Task<DeliveryApiResponse> WithDeliveryApiUrl()
{
var response = await _enterspeedDeliveryService.Fetch("environment-******-****-****-****-**********", builder => builder.WithDeliveryApiUrl("absolute url returned from delivery api"));
return response;
}
}
Contributing
Pull requests are very welcome.
Please fork this repository and make a PR when you are ready.
Otherwise you are welcome to open an Issue in our issue tracker.
License
Enterspeed .NET SDK is MIT licensed
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- System.Text.Json (>= 5.0.0 && < 8.0.0)
-
net6.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- System.Text.Json (>= 5.0.0 && < 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.4.2 | 475 | 6/20/2024 |
1.4.1 | 413 | 3/18/2024 |
1.4.0 | 317 | 2/12/2024 |
1.3.0 | 217 | 8/10/2023 |
1.2.0 | 293 | 4/20/2023 |
1.1.0 | 190 | 4/18/2023 |
1.0.0 | 856 | 11/21/2022 |
0.2.2 | 558 | 10/10/2022 |
0.2.1 | 448 | 10/10/2022 |
0.2.0 | 454 | 6/24/2022 |
0.1.3 | 593 | 10/22/2021 |
0.1.2 | 351 | 10/18/2021 |
0.1.1 | 1,013 | 6/11/2021 |
0.1.0 | 390 | 6/11/2021 |