Skip to content

Commit 08a00e1

Browse files
authored
chore: fix sample build warning (#498)
<!-- Please use this template for your pull request. --> <!-- Please use the sections that you need and delete other sections --> ## This PR <!-- add the description of the PR here --> - fixes the sample build warning ### Notes the `builder` name override the `WebApplicationBuilder` Signed-off-by: Weihan Li <weihanli@outlook.com>
1 parent cab3807 commit 08a00e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/AspNetCore/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
// Add services to the container.
1010
builder.Services.AddProblemDetails();
1111

12-
builder.Services.AddOpenFeature(builder =>
12+
builder.Services.AddOpenFeature(featureBuilder =>
1313
{
14-
builder.AddHostedFeatureLifecycle()
14+
featureBuilder.AddHostedFeatureLifecycle()
1515
.AddHook(sp => new LoggingHook(sp.GetRequiredService<ILogger<LoggingHook>>()))
16-
.AddInMemoryProvider("InMemory", provider => new Dictionary<string, Flag>()
16+
.AddInMemoryProvider("InMemory", _ => new Dictionary<string, Flag>()
1717
{
1818
{
1919
"welcome-message", new Flag<bool>(

0 commit comments

Comments
 (0)