Add Aspire component
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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);
- Ngôn ngữ chính
- C#
- Star
- 20
- Fork
- 17
- Merge trung bình
- 21 giờ 47 phút
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Flagsmith/flagsmith-dotnet-client
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
Flagsmith/flagsmith-dotnet-client#197 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Dependency DashboardĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Flagsmith/flagsmith-dotnet-client#194 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
Flagsmith/flagsmith-dotnet-client#191 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
Flagsmith/flagsmith-dotnet-client#190 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Local evaluation silently drops identity overrides on large environmentsCó thể đã có người làm @marc-merino đã nhận 38 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Flagsmith/flagsmith-dotnet-client#187 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Flagsmith/flagsmith-dotnet-client
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NimblePros/eShopOnWeb#333 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Natvs/Nt.Automaton#33 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Remove old asp.net core examplesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Add readme for the toolsĐang mởdocumentation
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày