Skip to content

Commit db4119b

Browse files
authored
Change Value to Setting for IOptions
1 parent c08118f commit db4119b

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)