Add Aspire component
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start with the AppHost.Program.cs and ServiceDefaults.Extensions.cs examples in the issue, then review the linked .NET Aspire overview and the existing client integration in this repository. Done means an Aspire component can provide the Flagsmith URL and EnvironmentKey, register FlagsmithClient through DI, and support the database reference and wait behavior described in the issue.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
It would be amazing, if we can have Flagsmith Aspire component.
I can provide some help in development of this aspire component.
Why?
- There are such requests from the community dotnet/aspire#1570
- It's the easiest way to start using Flagsmith with .NET
- Improves Flagsmith adoption across community
- Adds support for automatic DI registration
How it should look like
// AppHost.Program.cs
var builder = DistributedApplication.CreateBuilder(args);
var flagsmith = builder.AddFlagsmith();
var apiService = builder.AddProject<My_WebApi>("apiservice")
.WithEnvironment(flagsmith); // Pupulates URL and EnvironmentKey
// ServiceDefaults.Extensions.cs
public static TBuilder AddServiceDefaults<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder
{
builder.AddFlagsmithClient(); // Registers FlagsmithClient into DI with URL and EnvironmentKey
}
Example of configuration with database
// AppHost.Program.cs
var builder = DistributedApplication.CreateBuilder(args);
var postgresServer = builder.AddPostgres("postgresserver")
// Mount the SQL scripts directory into the container.
// Init script would create a flagsmith database, becuase Aspire doesn't create DB by default yet.
.WithContainerName("postgresserver")
.WithBindMount("../Postgres", "/docker-entrypoint-initdb.d");
var flagsmithDatabase = postgresServer.AddDatabase("flagsmithDatabase", databaseName: "flagsmithdb");
var flagsmith = builder.AddFlagsmith()
.WithReference(flagsmithDatabase) // Populates DATABASE_URL
.WaitFor(flagsmithDatabase)
var apiService = builder.AddProject<My_WebApi>("apiservice")
.WithEnvironment(flagsmith);
- Lenguaje dominante
- C#
- Estrellas
- 20
- Forks
- 17
- Merge medio
- 21 h 47 min
- PR fusionados (30 d)
- 8
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Flagsmith/flagsmith-dotnet-client
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
Flagsmith/flagsmith-dotnet-client#197 ·
Los mantenedores suelen responder en 1 día
-
Dependency DashboardAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Flagsmith/flagsmith-dotnet-client#194 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
Flagsmith/flagsmith-dotnet-client#191 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
Flagsmith/flagsmith-dotnet-client#190 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Local evaluation silently drops identity overrides on large environmentsPosiblemente ocupada @marc-merino la tomó hace 38 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Flagsmith/flagsmith-dotnet-client#187 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Flagsmith/flagsmith-dotnet-client
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Natvs/Nt.Automaton#33 ·
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
a-corriger documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
christian-raj/S-Aloha#312 ·
-
ready-for-agent tech-debt
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
DigiBanks99/menlo#640 ·
Los mantenedores suelen responder en 1 día
-
ci
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
OpenTabletDriver/OpenTabletDriver#5283 ·
Los mantenedores suelen responder en 3 días