FleetCard.EFS 1.0.8

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package FleetCard.EFS --version 1.0.8
                    
NuGet\Install-Package FleetCard.EFS -Version 1.0.8
                    
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="FleetCard.EFS" Version="1.0.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FleetCard.EFS" Version="1.0.8" />
                    
Directory.Packages.props
<PackageReference Include="FleetCard.EFS" />
                    
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 FleetCard.EFS --version 1.0.8
                    
#r "nuget: FleetCard.EFS, 1.0.8"
                    
#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 FleetCard.EFS@1.0.8
                    
#: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=FleetCard.EFS&version=1.0.8
                    
Install as a Cake Addin
#tool nuget:?package=FleetCard.EFS&version=1.0.8
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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