Browse Source

Merge branch 'rel-9.3' of https://github.com/abpframework/abp into rel-9.3

pull/23685/head 9.3.3
voloagent 5 months ago
parent
commit
c393efb3b1
  1. 13
      docs/en/framework/api-development/standard-apis/configuration.md

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

@ -55,7 +55,16 @@ namespace Acme.BookStore.Web
}
```
Add your contributor instance to the `AbpApplicationConfigurationOptions`
```csharp
Configure<AbpApplicationConfigurationOptions>(options =>
{
options.Contributors.AddIfNotContains(new MyApplicationConfigurationContributor());
});
```
* `IApplicationConfigurationContributor` defines the `ContributeAsync` method to extend the **application-configuration** endpoint with the specified additional data.
* You can inject services and perform any logic needed to extend the endpoint as you wish.
* You can get services from `context.ServiceProvider` and perform any logic needed to extend the endpoint as you wish.
> Application configuration contributors are automatically discovered by the ABP and executed as a part of the application configuration initialization process.
> Application configuration contributors are executed as a part of the application configuration initialization process.

Loading…
Cancel
Save