![]() |
VOOZH | about |
dotnet add package Cosmos.CrossCuttingConcerns.TenantPreferences --version 0.1.3
NuGet\Install-Package Cosmos.CrossCuttingConcerns.TenantPreferences -Version 0.1.3
<PackageReference Include="Cosmos.CrossCuttingConcerns.TenantPreferences" Version="0.1.3" />
<PackageVersion Include="Cosmos.CrossCuttingConcerns.TenantPreferences" Version="0.1.3" />Directory.Packages.props
<PackageReference Include="Cosmos.CrossCuttingConcerns.TenantPreferences" />Project file
paket add Cosmos.CrossCuttingConcerns.TenantPreferences --version 0.1.3
#r "nuget: Cosmos.CrossCuttingConcerns.TenantPreferences, 0.1.3"
#:package Cosmos.CrossCuttingConcerns.TenantPreferences@0.1.3
#addin nuget:?package=Cosmos.CrossCuttingConcerns.TenantPreferences&version=0.1.3Install as a Cake Addin
#tool nuget:?package=Cosmos.CrossCuttingConcerns.TenantPreferences&version=0.1.3Install as a Cake Tool
Abstracciones para preferencias de tenant (feature flags + remote configuration) en productos Cosmos. Los microservicios consumen este paquete y quedan agnósticos del proveedor concreto (Flagsmith, ConfigCat, LaunchDarkly, etc.).
using Cosmos.CrossCuttingConcerns.TenantPreferences;
public class PreferenciasRadicacion(ITenantPreferences preferences) : IPreferencias
{
public Task<bool> ConfirmacionAutomaticaAlRadicarAsync(CancellationToken ct)
=> preferences.GetAsync("oxp.radicacion.confirmacion_automatica_al_radicar",
defaultValue: false, ct);
public Task<long> MontoMaximoAlertaCopAsync(CancellationToken ct)
=> preferences.GetAsync("oxp.radicacion.monto_maximo_alerta_cop",
defaultValue: 30_000_000L, ct);
}
boolint, long, decimal, double, ...)string, DateTimeEnum.Parse case-insensitive)Nullable<T> de cualquiera de los anterioresSi el proveedor no puede resolver el valor (provider caído, clave desconocida, conversión imposible) el método devuelve el defaultValue. Los adaptadores son responsables de loguear el fallo.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Cosmos.CrossCuttingConcerns.TenantPreferences:
| Package | Downloads |
|---|---|
|
Cosmos.CrossCuttingConcerns.TenantPreferences.Flagsmith
Implementación Flagsmith para Cosmos.CrossCuttingConcerns.TenantPreferences. |
This package is not used by any popular GitHub repositories.