You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
newOpenAIClient(newSystem.ClientModel.ApiKeyCredential(config.apiKey),options).GetChatClient(config.modelName??"gemini-2.5-flash").AsIChatClient()// If implementing a custom service, replace "gemini-2.5-flash" with a model from the service
Supports the lower-level abstractions for the dependency injection (DI) software design pattern which is a technique for achieving Inversion of Control (IoC) between classes and their dependencies.
3
+
4
+
## Key Features
5
+
- Interfaces for DI implementations which are provided in other packages including `Microsoft.Extensions.DependencyInjection`.
6
+
- An implementation of a service collection, which is used to add services to and later retrieve them either directly or through constructor injection.
7
+
- Interfaces, attributes and extensions methods to support various DI concepts including specifying a service's lifetime and supporting keyed services.
8
+
9
+
## How to Use
10
+
This package is typically used with an implementation of the DI abstractions, such as `Microsoft.Extensions.DependencyInjection`.
Microsoft.Extensions.DependencyInjection.Abstractions is released as open source under the [MIT license](https://licenses.nuget.org/MIT). Bug reports and contributions are welcome at [the GitHub repository](https://github.com/dotnet/runtime).
0 commit comments