Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yuzd/autofac.annotation

DI容器,依赖注入,AOP,动态代理等用注解来load autofac 摆脱代码或者xml配置和java的spring的注解注入一样的体验
https://github.com/yuzd/autofac.annotation

attributes autofac autofac-spring configuration dependency-injection ioc-container spring spring-expression

Last synced: about 5 hours ago
JSON representation

DI容器,依赖注入,AOP,动态代理等用注解来load autofac 摆脱代码或者xml配置和java的spring的注解注入一样的体验

Awesome Lists containing this project

README

        

# Autofac extras library for component registration via attributes

支持netcore2.0 + framework4.6+

# NUGET

Install-Package Autofac.Annotation

## Document
https://github.com/yuzd/Autofac.Annotation/wiki

## Benchmark

``` ini

BenchmarkDotNet=v0.11.3, OS=Windows 10.0.18362
Intel Core i7-7700K CPU 4.20GHz (Kaby Lake), 1 CPU, 8 logical and 4 physical cores
.NET Core SDK=2.2.300
[Host] : .NET Core 2.1.13 (CoreCLR 4.6.28008.01, CoreFX 4.6.28008.01), 64bit RyuJIT [AttachedDebugger]
DefaultJob : .NET Core 2.1.13 (CoreCLR 4.6.28008.01, CoreFX 4.6.28008.01), 64bit RyuJIT

```

| Method | Mean | Error | StdDev |
|------------------ |---------:|----------:|----------:|
| AutofacAnnotation | 29.77 us | 0.2726 us | 0.2550 us |
| Autofac | 28.61 us | 0.2120 us | 0.1879 us |