MVFC.Connectors.Commons
3.0.4
See the version list below for details.
dotnet add package MVFC.Connectors.Commons --version 3.0.4
NuGet\Install-Package MVFC.Connectors.Commons -Version 3.0.4
<PackageReference Include="MVFC.Connectors.Commons" Version="3.0.4" />
<PackageVersion Include="MVFC.Connectors.Commons" Version="3.0.4" />
<PackageReference Include="MVFC.Connectors.Commons" />
paket add MVFC.Connectors.Commons --version 3.0.4
#r "nuget: MVFC.Connectors.Commons, 3.0.4"
#:package MVFC.Connectors.Commons@3.0.4
#addin nuget:?package=MVFC.Connectors.Commons&version=3.0.4
#tool nuget:?package=MVFC.Connectors.Commons&version=3.0.4
MVFC.Connectors.Commons
Shared HTTP infrastructure for all MVFC.Connectors packages. Provides authentication handlers, logging, user-agent providers, and HTTP settings.
English | Português
Features
- Token-based authentication via
AuthTokenHandler - HTTP request/response logging via
LoggingHandler - Pluggable token provider interface
ITokenProvider - Random user-agent rotation via
RandomUserAgentProvider - Centralized HTTP configuration via
HttpSettings
Installation
dotnet add package MVFC.Connectors.Commons
Components
| Component | Description |
|---|---|
AuthTokenHandler |
DelegatingHandler that injects bearer tokens into outgoing requests |
LoggingHandler |
DelegatingHandler that logs HTTP requests and responses |
ITokenProvider |
Abstraction for supplying authentication tokens |
IUserAgentProvider |
Abstraction for supplying User-Agent headers |
RandomUserAgentProvider |
Rotates user-agents on each request |
HttpSettings |
Centralized HTTP client configuration |
Quick Start
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddSingleton<ITokenProvider, MyTokenProvider>();
builder.Services.AddSingleton<IUserAgentProvider, RandomUserAgentProvider>();
var app = builder.Build();
Example
// Implement your own token provider
public class MyTokenProvider : ITokenProvider
{
public async Task<string> GetTokenAsync(CancellationToken ct)
{
// retrieve token from your auth server
return "your-bearer-token";
}
}
Related Packages
| Package | Description |
|---|---|
| MVFC.Connectors | Repository overview |
Contributing
Read CONTRIBUTING.md before opening issues or pull requests.
Security
If you discover a vulnerability, please refer to SECURITY.md.
License
Distributed under the license available in LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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. |
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.3)
- Microsoft.Extensions.Http.Resilience (>= 10.3.0)
- Microsoft.Extensions.Logging.Console (>= 10.0.3)
- refit (>= 10.0.1)
- Refit.HttpClientFactory (>= 10.0.1)
-
net9.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.13)
- Microsoft.Extensions.Http.Resilience (>= 9.10.0)
- Microsoft.Extensions.Logging.Console (>= 9.0.13)
- refit (>= 9.0.2)
- Refit.HttpClientFactory (>= 9.0.2)
NuGet packages (10)
Showing the top 5 NuGet packages that depend on MVFC.Connectors.Commons:
| Package | Downloads |
|---|---|
|
MVFC.Connectors.IA
Conectores para integração com serviços de Inteligência Artificial e machine learning, facilitando o acesso a APIs de IA. |
|
|
MVFC.Connectors.Justica
Conectores para serviços relacionados ao sistema judiciário, permitindo consulta de informações jurídicas e integração com APIs do judiciário. |
|
|
MVFC.Connectors.Developer
Utilitários e conectores para desenvolvedores, facilitando integrações, testes e depuração nos projetos MVFC. |
|
|
MVFC.Connectors.BrasilApi
Conectores para integração com a BrasilAPI, fornecendo acesso a dados públicos brasileiros como bancos, CEP, CNPJ, clima, feriados, FIPE, IBGE, ISBN, entre outros. |
|
|
MVFC.Connectors.Financas
Conectores para serviços financeiros, incluindo integração com APIs de bancos, câmbio, cotação de moedas e outros dados financeiros. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.5 | 0 | 3/17/2026 |
| 3.0.4 | 33 | 3/16/2026 |
| 2.1.4 | 223 | 2/19/2026 |
| 2.1.1 | 210 | 1/19/2026 |
| 2.1.0 | 189 | 1/19/2026 |
| 2.0.5 | 203 | 1/8/2026 |
| 2.0.4 | 206 | 1/7/2026 |
| 2.0.3 | 199 | 1/4/2026 |
| 2.0.2 | 199 | 1/3/2026 |
| 2.0.1 | 201 | 1/3/2026 |
| 1.2.0 | 322 | 11/16/2025 |
| 1.1.1 | 328 | 11/10/2025 |
| 1.1.0 | 290 | 11/10/2025 |
| 1.0.0 | 285 | 11/10/2025 |