Skip to content

Commit e33d8c7

Browse files
authored
Merge pull request #6 from MoienTajik/patch-1
2 parents c08118f + db4119b commit e33d8c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public class MyConfigureOptions : IConfigureOptions<LibraryOptions>
246246

247247
public void Configure(LibraryOptions options)
248248
{
249-
options.Value = _service.ComputeSetting();
249+
options.Setting = _service.ComputeSetting();
250250
}
251251
}
252252
```
@@ -268,7 +268,7 @@ public void ConfigureServices(IServiceCollection services)
268268
services.AddOptions<LibraryOptions>()
269269
.Configure<ISomeService>((options, service) =>
270270
{
271-
options.Value = service.ComputeSetting();
271+
options.Setting = service.ComputeSetting();
272272
});
273273
}
274274
```

0 commit comments

Comments
 (0)