BIS.Email.Client.F 1.0.3

dotnet add package BIS.Email.Client.F --version 1.0.3
                    
NuGet\Install-Package BIS.Email.Client.F -Version 1.0.3
                    
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="BIS.Email.Client.F" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BIS.Email.Client.F" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="BIS.Email.Client.F" />
                    
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 BIS.Email.Client.F --version 1.0.3
                    
#r "nuget: BIS.Email.Client.F, 1.0.3"
                    
#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 BIS.Email.Client.F@1.0.3
                    
#: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=BIS.Email.Client.F&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=BIS.Email.Client.F&version=1.0.3
                    
Install as a Cake Tool

BIS.Email.Client.F (Externo)

Cliente .NET para consumir la API de BIS Email desde aplicaciones C#, VB.NET, Blazor y .NET Framework.

Qué incluye el paquete

  • Cliente HTTP tipado: BisEmailClient
  • Modelos request/response para todos los endpoints
  • Manejo de errores con BisEmailApiException
  • Extensión de DI: AddBisEmailClient(...)
  • Soporte multi-target: net8.0, net6.0, netstandard2.0, net48

Compatibilidad

Plataforma Framework
Blazor Server / WebAssembly .NET 6 / .NET 8
ASP.NET Core .NET 6 / .NET 8
VB.NET WinForms / WPF .NET Framework 4.8
Apps C# / VB.NET netstandard2.0, net6.0, net8.0

Instalación

dotnet add package BIS.Email.Client.F

Configuración rápida (C# + DI)

using BIS.Email.Client;

builder.Services.AddBisEmailClient(options =>
{
    options.BaseUrl = "https://tu-api";
    options.ApiKey = "tu-api-key";
    options.TimeoutSeconds = 60;
});

Uso básico (C#)

using BIS.Email.Client.Models;

var response = await emailClient.EnviarIndividualAsync(new EnviarIndividualRequest
{
    Destinatario = "usuario@dominio.com",
    Asunto = "Bienvenido",
    Contenido = "<h1>Hola</h1><p>Este es un correo de prueba.</p>",
    EsHtml = true,
    Modulo = "onboarding"
});

Console.WriteLine($"EnvioId: {response.EnvioId} - Estado: {response.Estado}");

Uso básico (VB.NET)

Imports BIS.Email.Client
Imports BIS.Email.Client.Models

Dim http As New HttpClient()
http.BaseAddress = New Uri("https://tu-api")
http.DefaultRequestHeaders.Add("X-Api-Key", "tu-api-key")

Dim client As New BisEmailClient(http)

Dim req As New EnviarIndividualRequest()
req.Destinatario = "usuario@dominio.com"
req.Asunto = "Bienvenido"
req.Contenido = "<h1>Hola</h1><p>Correo de prueba.</p>"
req.EsHtml = True

Dim result = Await client.EnviarIndividualAsync(req)

Métodos principales

Envío

  • EnviarIndividualAsync
  • EnviarMasivoAsync
  • EnviarPersonalizadoAsync

Envíos/Tracking

  • ObtenerEnvioAsync
  • ObtenerStatsAsync
  • ObtenerDestinatariosAsync
  • ReintentarFallidosAsync

Plantillas

  • ListarPlantillasAsync
  • ObtenerPlantillaAsync
  • CrearPlantillaAsync
  • ActualizarPlantillaAsync
  • EliminarPlantillaAsync
  • PreviewPlantillaAsync
  • TestPlantillaAsync

Supresión

  • ListarSupresionesAsync
  • AgregarSupresionAsync
  • EliminarSupresionAsync

Manejo de errores

Cuando la API responde error, el cliente lanza BisEmailApiException.

try
{
    var result = await emailClient.EnviarMasivoAsync(request);
}
catch (BisEmailApiException ex)
{
    Console.WriteLine($"HTTP {(int)ex.StatusCode}: {ex.ResponseBody}");
}

Versionado

SemVer:

  • PATCH → correcciones (1.0.01.0.1)
  • MINOR → nuevas funcionalidades compatibles (1.0.01.1.0)
  • MAJOR → cambios incompatibles (1.0.02.0.0)

Empaquetado

dotnet pack .\BIS.Email.Client\BIS.Email.Client.csproj -c Release
Product 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 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 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. 
.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 is compatible.  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.

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.0.3 85 5/16/2026
1.0.2 88 5/4/2026
1.0.0 94 5/2/2026

1.0.3: Soporte para .NET 10. Dependencias pineadas por TFM para evitar conflictos transitivos en consumidores .NET 8 (fix MissingMethodException en SocketsHttpHandler.MeterFactory).