Microsoft.Extensions.DependencyInjection 11.0.0-preview.2.26159.112
About
Supports the dependency injection (DI) software design pattern which is a technique for achieving Inversion of Control (IoC) between classes and their dependencies.
Key Features
Provides an implementation of the DI interfaces found in the Microsoft.Extensions.DependencyInjection.Abstractions package.
How to Use
ServiceCollection services = new ();
services.AddSingleton<IMessageWriter, MessageWriter>();
using ServiceProvider provider = services.BuildServiceProvider();
// The code below, following the IoC pattern, is typically only aware of the IMessageWriter interface, not the implementation.
IMessageWriter messageWriter = provider.GetService<IMessageWriter>()!;
messageWriter.Write("Hello");
public interface IMessageWriter
{
void Write(string message);
}
internal class MessageWriter : IMessageWriter
{
public void Write(string message)
{
Console.WriteLine($"MessageWriter.Write(message: \"{message}\")");
}
}
Main Types
The main types provided by this library are:
Microsoft.Extensions.DependencyInjection.DefaultServiceProviderFactoryMicrosoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensionsMicrosoft.Extensions.DependencyInjection.ServiceProvider
Additional Documentation
- Conceptual documentation
- API documentation
Related Packages
Microsoft.Extensions.DependencyInjection.AbstractionsMicrosoft.Extensions.HostingMicrosoft.Extensions.Options
Feedback & Contributing
Microsoft.Extensions.DependencyInjection is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Showing the top 20 packages that depend on Microsoft.Extensions.DependencyInjection.
| Packages | Downloads |
|---|---|
|
Microsoft.VisualStudio.Web.CodeGeneration
Contains the CodeGenCommand that finds the appropriate code generator and invokes it from project dependencies.
This package was built from the source code at https://github.com/aspnet/scaffolding/tree/458fd60d0885d8e7933b40d1386bf21f1a0f2590
|
21 |
|
Microsoft.AspNetCore.Mvc.Localization
ASP.NET Core MVC features that enable globalization and localization of applications.
Commonly used types:
Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer<TResource>
Microsoft.AspNetCore.Mvc.Localization.IViewLocalizer
|
20 |
|
Volo.Abp.Core
Package Description
|
19 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/b7a2ec8c7ed6b48857af0a69688a73e8c14fe6cb
|
19 |
|
Serilog.AspNetCore
Serilog support for ASP.NET Core logging
|
19 |
|
Microsoft.EntityFrameworkCore
Entity Framework Core is a lightweight and extensible version of the popular Entity Framework data access technology.
Commonly Used Types:
Microsoft.EntityFrameworkCore.DbContext
Microsoft.EntityFrameworkCore.DbSet
|
18 |
|
Microsoft.AspNetCore.DataProtection.Extensions
Additional APIs for ASP.NET Core data protection.
This package was built from the source code at https://github.com/aspnet/AspNetCore/tree/e81033e094d4663ffd227bb4aed30b76b0631e6d
|
18 |
|
FreeSql.DbContext
FreeSql is the ORM in .NetCore, .NetFramework, And Xamarin. It supports Mysql, Postgresql, SqlServer, Oracle, Sqlite, Odbc, 达梦, And Access
|
18 |
|
Serilog.AspNetCore
Serilog support for ASP.NET Core logging
|
17 |
|
learun.utils
力软敏捷框架util通用方法
|
17 |
|
Magicodes.IE.Core
Import and export general library, support Dto import and export, template export, fancy export and dynamic export, support Excel, Csv, Word, Pdf and Html.
导入导出通用库,支持Dto导入导出、模板导出、花式导出以及动态导出,支持Excel、Csv、Word、Pdf和Html。
开源库地址:https://github.com/xin-lai
博客地址:http://www.cnblogs.com/codelove/
公众号:麦扣聊技术
交流QQ群:85318032
**2021.07.15**
- Magicodes.EPPlus回退到4.6.3,以修复格式错乱的问题
- 修复Excel仅导出错误数据时的Bug[#302](https://github.com/dotnetcore/Magicodes.IE/pull/302)
- 完善多语言[#298](https://github.com/dotnetcore/Magicodes.IE/pull/298),以及完善单元测试
**2021.07.04**
- 模板导出支持一行多个表格[#296](https://github.com/dotnetcore/Magicodes.IE/issues/296)
**2021.06.29**
- 合并PR[#295](https://github.com/dotnetcore/Magicodes.IE/pull/295),完善模板导出类型定义的问题
**2021.06.25**
- Fix only first [ColumnIndex] is valid exception[#289](https://github.com/dotnetcore/Magicodes.IE/issues/289)
**2021.06.18**
- Update ImportTestColumnIndex_Test
- Magicodes.EPPlus was upgraded to 4.6.7[#285](https://github.com/dotnetcore/Magicodes.IE/issues/285)
**2021.06.05**
- Fix ImporterHeader->ColumnIndex
- Utilize RecyclableMemoryStream instead of "new MemoryStream" all over
**2021.06.05**
- EXCEL模板导出支持XOffset和YOffset
- EXCEL修复ValueMapping
- Core工程多语言配置
- EXCEL优化时间导出
**2021.06.01**
- EXCEL支持自动换行属性
- EXCEL支持隐藏列属性
- EXCEL优化时间优化
|
17 |
|
AspectCore.Extensions.DependencyInjection
Interceptor and dynamicProxy support for Microsoft.Extensions.DependencyInjection via AspectCore Framework.
|
17 |
|
Microsoft.AspNetCore.DataProtection.Extensions
Additional APIs for ASP.NET Core data protection.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/d9ba962869d1b1c410ea476b02de2f8e27eec762
|
17 |
|
Microsoft.VisualStudio.Web.CodeGeneration
Contains the CodeGenCommand that finds the appropriate code generator and invokes it from project dependencies.
This package was built from the source code at https://github.com/aspnet/scaffolding/tree/629bb9963377eb9e915013bd8b2f5c724833d82a
|
17 |
|
Microsoft.VisualStudio.Web.CodeGeneration
Contains the CodeGenCommand that finds the appropriate code generator and invokes it from project dependencies.
|
17 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/aspnet/AspNetCore/tree/c04846dc66cc97f71d83a83a15437828435f5d44
|
16 |
|
Volo.Abp.Core
Package Description
|
16 |
|
Microsoft.AspNetCore.Components.Web
Support for rendering ASP.NET Core components for browsers.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/3f1acb59718cadf111a0a796681e3d3509bb3381
|
16 |
|
Microsoft.AspNetCore.Hosting
ASP.NET Core hosting infrastructure and startup logic for web applications.
|
16 |
https://go.microsoft.com/fwlink/?LinkID=799421
.NET Framework 4.6.2
- Microsoft.Bcl.AsyncInterfaces (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 11.0.0-preview.2.26159.112)
- System.Threading.Tasks.Extensions (>= 4.6.3)
.NET 10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 11.0.0-preview.2.26159.112)
.NET 11.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 11.0.0-preview.2.26159.112)
.NET Standard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 11.0.0-preview.2.26159.112)
- System.Threading.Tasks.Extensions (>= 4.6.3)
.NET Standard 2.1
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 11.0.0-preview.2.26159.112)