FleetCard.EFS
1.0.8
dotnet add package FleetCard.EFS --version 1.0.8
NuGet\Install-Package FleetCard.EFS -Version 1.0.8
<PackageReference Include="FleetCard.EFS" Version="1.0.8" />
<PackageVersion Include="FleetCard.EFS" Version="1.0.8" />
<PackageReference Include="FleetCard.EFS" />
paket add FleetCard.EFS --version 1.0.8
#r "nuget: FleetCard.EFS, 1.0.8"
#:package FleetCard.EFS@1.0.8
#addin nuget:?package=FleetCard.EFS&version=1.0.8
#tool nuget:?package=FleetCard.EFS&version=1.0.8
FleetCard.EFS
.NET 8 client for FleetCards
Install
dotnet add package FleetCard.EFS
Quick start
using FleetCard.EFS;
var client = new FleetCardClient(FleetCardEnvironment.Development);
var clientId = await client.LoginAsync(user, pass);
var products = await client.GetProductsAsync(clientId);
var card = await client.GetCardAsync(clientId, "70830500…");
await client.LogoutAsync(clientId);
Dependency injection
builder.Services.AddSingleton(new FleetCardClient(FleetCardEnvironment.Production));
The client is thread-safe and intended to be reused (channels are cached per operation). LoginAsync returns a clientId session token that you pass to the other calls.
An optional timeout can be set for slow operations (default is WCF's 1 minute):
new FleetCardClient(FleetCardEnvironment.Development, timeout: TimeSpan.FromMinutes(10));
Environments
| Environment | URL |
|---|---|
FleetCardEnvironment.Development |
https://ws.partner.efsllc.com/axis2/services/CardManagementWS/ |
FleetCardEnvironment.Production |
https://ws.efsllc.com/axis2/services/CardManagementWS/ |
The two WSDLs are identical except for this URL, so one generated client serves both. URLs are also exposed as constants on FleetCardEndpoints.
Errors
Server-side errors surface as System.ServiceModel.FaultException with the EFS message (e.g. "No cards found for driverId."). Transport problems throw the usual CommunicationException/TimeoutException.
| 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 was computed. 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 was computed. 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. |
-
net8.0
- System.ServiceModel.Http (>= 8.1.2)
- System.ServiceModel.Primitives (>= 8.1.2)
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 |
|---|