Browse Source

Merge pull request #19900 from abpframework/maliming-patch-1

Update Application-Configuration.md
pull/19903/head
Engincan VESKE 2 years ago
committed by GitHub
parent
commit
a65c79570e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 11
      docs/en/API/Application-Configuration.md

11
docs/en/API/Application-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. * `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 inject services and perform any logic needed to extend the endpoint as you wish.
> Application configuration contributors are automatically discovered by the ABP Framework 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