BT.Producers.Integration
1.0.12
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Framework 4.7.2
This package targets .NET Framework 4.7.2. The package is compatible with this framework or higher.
dotnet add package BT.Producers.Integration --version 1.0.12
NuGet\Install-Package BT.Producers.Integration -Version 1.0.12
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="BT.Producers.Integration" Version="1.0.12" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BT.Producers.Integration" Version="1.0.12" />
<PackageReference Include="BT.Producers.Integration" />
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 BT.Producers.Integration --version 1.0.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BT.Producers.Integration, 1.0.12"
#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 BT.Producers.Integration@1.0.12
#: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=BT.Producers.Integration&version=1.0.12
#tool nuget:?package=BT.Producers.Integration&version=1.0.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
BT Producers Integration
Knihovna pro integraci s různými pojišťovacími producenty poskytovaná společností Broker Trust a.s.
Popis
BT.Producers.Integration je .NET knihovna, která poskytuje sjednocené rozhraní pro integraci s API různých pojišťovacích společností. Knihovna podporuje jak .NET Framework 4.7.2, tak .NET 6.0 a obsahuje implementace pro:
- ČPP (Česká podnikatelská pojišťovna) - Integrace pro generování URL do poradenského portálu
- UNIQA - Integrace pro autentizaci a práci s API
Podporované platformy
- .NET Framework 4.7.2
- .NET 6.0
Funkcionality
ČPP Integration
- Generování bezpečných URL pro přístup do poradenského portálu ČPP
- Šifrování parametrů pomocí SOAP služby
- Asynchronní i synchronní metody (podle target frameworku)
UNIQA Integration
- Autentizace přes REST API
- Získávání access tokenů
- HTTP client factory pattern pro optimální správu síťových připojení
Instalace
Knihovna je dostupná jako NuGet balíček. Pro instalaci použijte následující příkaz:
dotnet add package BT.Producers.Integration
Použití
ČPP Integration
// Asynchronní metoda (.NET 6.0)
string url = await CppIntegration.GetAdvisoryPortalUrlAsync("partnerId", "contractNumber");
// Synchronní metoda (.NET Framework 4.7.2)
string url = CppIntegration.GetAdvisoryPortalUrl("partnerId", "contractNumber");
UNIQA Integration
// Registrace HTTP client factory
services.AddHttpClient();
// Použití
// Asynchronní metoda (.NET 6.0)
var integration = new UniqaIntegration(httpClientFactory);
var token = await integration.GetAuthTokenAsync("username", "password", cancellationToken);
var advisoryPortalUrl = await uniqaIntegration.GetAdvisoryPortalUrlAsync(token.AccessToken, "contractNumber", cancellationToken);
// Synchronní metoda (.NET Framework 4.7.2)
var integration = new UniqaIntegration(httpClientFactory);
var token = integration.GetAuthToken("username", "password");
var advisoryPortalUrl = uniqaIntegration.GetAdvisoryPortalUrl(token.AccessToken, "contractNumber");
Závislosti
- System.ServiceModel.* (pro SOAP komunikaci)
- Microsoft.Extensions.Http (pro HTTP client factory)
- System.Net.Http.Json (pro JSON API komunikaci)
Licence
Tento projekt je licencován pod MIT licencí
Autor
Broker Trust a.s.
Odkazy
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. 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. |
| .NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- Microsoft.Extensions.Http (>= 2.2.0)
- System.Net.Http.Json (>= 3.2.1)
- System.ServiceModel.Duplex (>= 4.10.3)
- System.ServiceModel.Federation (>= 4.10.3)
- System.ServiceModel.Http (>= 4.10.3)
- System.ServiceModel.NetTcp (>= 4.10.3)
- System.ServiceModel.Security (>= 4.10.3)
-
net6.0
- Microsoft.Extensions.Http (>= 6.0.0)
- System.Net.Http.Json (>= 6.0.1)
- System.ServiceModel.Duplex (>= 4.10.3)
- System.ServiceModel.Federation (>= 4.10.3)
- System.ServiceModel.Http (>= 4.10.3)
- System.ServiceModel.NetTcp (>= 4.10.3)
- System.ServiceModel.Security (>= 4.10.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.