Skip to content

Commit c393efb

Browse files
committed
Merge branch 'rel-9.3' of https://github.com/abpframework/abp into rel-9.3
2 parents ca77cfb + e1d0e8d commit c393efb

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

docs/en/framework/api-development/standard-apis/configuration.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,16 @@ namespace Acme.BookStore.Web
5555
}
5656
```
5757

58+
Add your contributor instance to the `AbpApplicationConfigurationOptions`
59+
60+
```csharp
61+
Configure<AbpApplicationConfigurationOptions>(options =>
62+
{
63+
options.Contributors.AddIfNotContains(new MyApplicationConfigurationContributor());
64+
});
65+
```
66+
5867
* `IApplicationConfigurationContributor` defines the `ContributeAsync` method to extend the **application-configuration** endpoint with the specified additional data.
59-
* You can inject services and perform any logic needed to extend the endpoint as you wish.
68+
* You can get services from `context.ServiceProvider` and perform any logic needed to extend the endpoint as you wish.
6069

61-
> Application configuration contributors are automatically discovered by the ABP and executed as a part of the application configuration initialization process.
70+
> Application configuration contributors are executed as a part of the application configuration initialization process.

0 commit comments

Comments
 (0)