Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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的注解注入一样的体验
- Host: GitHub
- URL: https://github.com/yuzd/autofac.annotation
- Owner: yuzd
- License: mit
- Created: 2018-11-26T13:07:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-04T10:43:10.000Z (12 months ago)
- Last Synced: 2024-12-16T01:03:03.207Z (7 days ago)
- Topics: attributes, autofac, autofac-spring, configuration, dependency-injection, ioc-container, spring, spring-expression
- Language: C#
- Homepage: https://github.com/yuzd/Autofac.Annotation/wiki
- Size: 894 KB
- Stars: 211
- Watchers: 10
- Forks: 52
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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 |