Add Aspire component
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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);
- 主要言語
- C#
- スター
- 20
- フォーク
- 17
- 平均マージ
- 21時間 47分
- マージ済み PR(30日)
- 8
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Flagsmith/flagsmith-dotnet-client のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
Flagsmith/flagsmith-dotnet-client#197 ·
メンテナーはふだん 1 日以内に返信
-
Dependency Dashboardオープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
Flagsmith/flagsmith-dotnet-client#194 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
Flagsmith/flagsmith-dotnet-client#191 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
Flagsmith/flagsmith-dotnet-client#190 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Local evaluation silently drops identity overrides on large environments対応中かも @marc-merino が 38 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
Flagsmith/flagsmith-dotnet-client#187 ·
メンテナーはふだん 1 日以内に返信
Flagsmith/flagsmith-dotnet-client の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NimblePros/eShopOnWeb#333 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Natvs/Nt.Automaton#33 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
documentation
難易度 2/5 半日 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信