Skip to content

Commit 085688a

Browse files
hikalkanCopilot
andauthored
Update docs/en/framework/fundamentals/configuration.md
Good suggestion from AI :) Co-authored-by: Copilot <[email protected]>
1 parent 0f03b04 commit 085688a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/en/framework/fundamentals/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class MyAppModule : AbpModule
2222
}
2323
````
2424

25-
`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).
25+
`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).
2626

2727
### In Your Services
2828

0 commit comments

Comments
 (0)