Browse Source

Update docs/en/framework/fundamentals/configuration.md

Good suggestion from AI :)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/22822/head
Halil İbrahim Kalkan 1 year ago
committed by GitHub
parent
commit
085688ad37
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      docs/en/framework/fundamentals/configuration.md

2
docs/en/framework/fundamentals/configuration.md

@ -22,7 +22,7 @@ public class MyAppModule : AbpModule
}
````
`context.Configuration` is a shortcut property for the `context.Services.GetConfiguration()` method. You can use any of them (`IServiceCollection.GetConfiguration` is an extension method that can be used whenever you have an `IServiceCollection` object).
`context.Configuration` is a shortcut property for the `context.Services.GetConfiguration()` method. In general, prefer using `context.Configuration` for simplicity and readability when working within module classes. Use `context.Services.GetConfiguration()` in other contexts where you have an `IServiceCollection` object but do not have access to the `context.Configuration` property. (`IServiceCollection.GetConfiguration` is an extension method that can be used whenever you have an `IServiceCollection` object).
### In Your Services

Loading…
Cancel
Save