AsNet.Shared.Data 2.2.1

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

AsNet.Shared.Data v2.2.1.0

Descripción

AsNet.Shared.Data es una biblioteca de integración con el sistema AsNetSecurity que permite obtener y generar cadenas de conexión dinámicas para aplicaciones Multi-Tenant.

Esta versión está diseñada para:

  • .NET Standard 2.1
  • .NET 8.0
  • .NET 9.0
  • .NET 10.0

Incluye un nuevo método para manejar múltiples ConnectionStrings por tenantKey desde el archivo appsettings.json. Ahora incluye las clases GenericQueries y GenericCommands que implementan el patrón CQRS.

Características

  • Generación dinámica de cadenas de conexión por tenant.
  • Integración con servicios de seguridad de AsNet.
  • Soporte para múltiples entornos y proveedores de conexión.
  • Configuración flexible desde appsettings.json.

Configuración

Para esta versión se requieren dos secciones de configuración en appsettings.json:

"AsNet": {
  "Security": {
    "ApplicationSettings": {
      "CommandTimeout": 301,
      "ConnectionProviderName": "Microsoft.Data.SqlClient",
      "ApplicationId": "29880977-F102-4C51-AC41-E23C1D28DC5B",
      "ApplicationName": "ApplicationName",
      "ApplicationSalt": "ApplicationSalt",
      "ConnectionType": "Production",
      "SecurityWebApi": "https://wapiasnetsecurity.azurewebsites.net/api",
      "DefaultLocalConnectionName": "AsNetSecurity_Dllo",
      "DBContextLogger": false
    },
    "IdentityServerSettings": {
      "Address": "https://ssopru.asnet.app",
      "ClientId": "",
      "ClientSecret": "",
      "Scope": ""
    },
    "OpenIdConnectSettings": {
      "Authority": "https://ssopru.asnet.app",
      "ClientId": "ClientId",
      "ClientSecret": "ClientSecret",
      "ResponseType": "code",
      "Scope": "openid profile email roles offline_access address Application"
    }
  },
  "Http": {
    "HttpSettings": {
    "HandlerLifetime": "00:05:00", // 5 minutos
    "Timeout": "00:02:00", // 2 minutos
    "DefaultClientName": "AsNetSharedHttp", //Logical name of HttpClient to create
    "IPStackURL": "http://api.ipstack.com",
    "IPStackAccessKey": "IPStack Access Key"
    }
  },
}
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 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

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
2.2.1 100 1/14/2026
2.2.0 88 1/13/2026
2.1.1.6 225 6/30/2025
2.1.1.5 214 1/6/2025
2.1.1.4 183 12/9/2024
2.1.1.3 192 12/9/2024 2.1.1.3 is deprecated because it has critical bugs.
2.1.1.2 215 11/11/2024
2.1.1.1 225 9/6/2024
2.1.1 218 6/9/2024
2.1.0.8 227 5/29/2024
2.1.0.7 259 4/1/2024
2.1.0.6 209 3/30/2024
2.1.0.5 259 9/29/2023
2.1.0.4 201 9/28/2023
2.1.0.3 236 9/2/2023
2.1.0.2 275 6/15/2023
2.1.0.1 290 6/12/2023
2.1.0 295 5/3/2023
2.0.4.3 363 3/27/2023
2.0.4.2 374 2/16/2023
2.0.4.1 457 1/15/2023
2.0.4 434 1/12/2023
2.0.3.1 516 9/4/2022
2.0.2.2 581 5/11/2022

Esta versión esta diseñada para Net 8.0/9.0/10.0.
     Incluye nuevas clases genéricas para Queries y Commands.