MVFC.Connectors.Commons 3.0.4

There is a newer version of this package available.
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
                    
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="MVFC.Connectors.Commons" Version="3.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MVFC.Connectors.Commons" Version="3.0.4" />
                    
Directory.Packages.props
<PackageReference Include="MVFC.Connectors.Commons" />
                    
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 MVFC.Connectors.Commons --version 3.0.4
                    
#r "nuget: MVFC.Connectors.Commons, 3.0.4"
                    
#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 MVFC.Connectors.Commons@3.0.4
                    
#: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=MVFC.Connectors.Commons&version=3.0.4
                    
Install as a Cake Addin
#tool nuget:?package=MVFC.Connectors.Commons&version=3.0.4
                    
Install as a Cake Tool

MVFC.Connectors.Commons

Shared HTTP infrastructure for all MVFC.Connectors packages. Provides authentication handlers, logging, user-agent providers, and HTTP settings.

NuGet Downloads License CI Platform

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";
    }
}

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

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